Skip to content

Instantly share code, notes, and snippets.

View robbyrussell's full-sized avatar
:bowtie:
Focusing on @planetargon at the moment

Robby Russell robbyrussell

:bowtie:
Focusing on @planetargon at the moment
View GitHub Profile
@robbyrussell
robbyrussell / languages.md
Created May 1, 2018 00:20 — forked from joshsusser/languages.md
languages I've been paid to program in
  1. assembler
  2. bash
  3. BASIC
  4. C
  5. C++
  6. Dylan (aka Ralph)
  7. HyperTalk
  8. Java
  9. JavaScript
  10. Lisp
I use Cucumber 0.3.97. Your mileage may vary with older versions.
# install rspactor
sudo gem install guillaumegentil-rspactor
# Change your database.yml to include the following
test: &TEST
database: your_database_name_here
<<: *login
def auto_complete_for_search_query
if params.has_key( :search_query ) and not params[:search_query].blank?
search_query = "%#{params[:search_query]}%"
@cars = Car.find( :all, :conditions => [ 'title LIKE ?', search_query ] )
render :partial => "search_results"
end
end
def search_query
auto_complete_for_search_query