Michael Pavling wrote: > On 11 May 2010 21:03, sso <[email protected]> wrote: >> if somebody enters a a controller that doesn't exist a database search >> runs and looks for the controller name >> >> Is this possible without violating any "rules"? > > You would probably be able to do something by catching 404 errors in > your application controller and then punting them off to a method that > tries to guess what the user meant. Google for "Rails 404" for a few > methods to try.
Actually, no 404 catching is necessary. All you need is a catchall route that sends '/:category' off to a search action. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

