Skip to content

Instantly share code, notes, and snippets.

Johan Van Ryseghem zog

Block or report user

Report or block zog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
" for testing different rgb mappings for colors
"let rgb_file = "~/.vim/rgb.txt"
" don't worry about trying to stick to vi/ex conventions
set nocompatible
" disable modelines, as I don't use them
set modelines=0
set nomodeline
set term=ansi
@zog
zog / controller.rb
Created Dec 21, 2010
In order to use highlights w/ Sunspot
View controller.rb
# in the controller (or wherever you perform the search), enable highlights
@search = Sunspot.search(Model) do
keyword 'foo', :highlights => true
end
# or
@search = Sunspot.search(Model) do
keyword 'foo', :highlights => :name
end
You can’t perform that action at this time.