- assembler
- bash
- BASIC
- C
- C++
- Dylan (aka Ralph)
- HyperTalk
- Java
- JavaScript
- Lisp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |