search for: searchescontrol

Displaying 3 results from an estimated 3 matches for "searchescontrol".

2006 May 25
0
uninitialized constant
...:/app/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:122:in `const_missing'' #{RAILS_ROOT}/app/models/search.rb:34:in `search_by_category_and_place'' #{RAILS_ROOT}/app/controllers/searches_controller.rb:22:in `search'' ------------------ SearchesController ------------------ require ''ambiguous_place_exception'' class SearchesController < ApplicationController def search create category = @search.category_string location = @search.location if Postcode.validate(location) @results = Search.search_by_cate...
2007 Apr 12
19
Multiple Model Search
[from out-of-band communication with steven, just for the record] Hi! On Wed, Apr 11, 2007 at 01:47:49PM +0200, Steven Garcia wrote: > Hey Jens, > [..] > > 1. Is the Search model just an Active Record object or do I need to > set up a database for it as well (if so then with what columns)? No, that search model is just a plain class that backs your search form. If you want to
2007 May 14
0
Naming conflict between Ferret and my own model class
...ntaining searches in the database is call "Search" and Ferret also has a module called "Search". When I include Ferret in my "Search" model class, naming conflict came out and I got the following error: undefined method `new'' for Ferret::Search:Module in the SearchesController, this is because I want to create an instance of my "Search" model class. I don''t really want to rename my model class, is there any other solutions? Thanks for help. -- Posted via http://www.ruby-forum.com/.