On Wed, Sep 8, 2010 at 10:49 PM, radhames brito <rbri...@gmail.com> wrote:
> true is a :get not a :post( typo maybe i was thinking :get but wrote > :post), but it is a member action because only one name will be returned, > note that he is checking if the is more than one book with that name if that > is the case he will not allow the creation so there should never be more > than one and the action will only return one record A member action acts on a single member. How can you act on an unknown member? > resources :titles do > member do > get :search > end > end would create a URL like: /titles/:id/search What would you suggest putting as the ID? Instead, this is acting upon the /titles collection of resources, searching for something that exists within it. As such, the URL would be: /titles/search Adam Stegman -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.