Another one with ActiveScaffold. Am I doing something wrong? Is my workaround correct? Cheers, Sazima --------------------------------------------------------------------------------------------------- What steps will reproduce the problem? 1. Create RESTful application (script/generate scaffold user) 2. Install/use ActiveScaffold 3. Click on "Search" What is the expected output? What do you see instead? Search field. Instead there is an error because the REST route to the "user" resource has higher priority in routes.rb than common routes): ActiveRecord::RecordNotFound (Couldn''t find User with ID=show_search) I had to move the ERST route to the end of the file to get the search feature to work... What version (or revision) of the product are you using? 1.1.1 with Rails 2.0.2 (InstantRails2 installation) --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Mason
2008-Jan-26 06:08 UTC
Re: ActiveScaffold - Search route doesn''t work with REST
Sazima wrote:> > I had to move the ERST route to the end of the file to get the search > feature to work... >If you enable active_scaffold on your REST routes, you don''t have to reorder anything Ex. map.resources :candidates, :active_scaffold => true Hope this helps, Chris -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---