search for: query_location

Displaying 1 result from an estimated 1 matches for "query_location".

2006 Jun 25
1
Using AND in :conditions queries
...statements. Code below: In the view: <%= start_form_tag :action=> "show_search" %> <h3>Search</h3> <b>Keywords: </b> <input type=text name="query"> <b>Location: </b> <input type=text name="query_location"> <input type="submit" value="Search &#187;" class="primary" /> <%= end_form_tag %> and the controller: @posts = Post.find(:all, :conditions => [ ''title LIKE :search_query OR body LIKE :search_q...