On 5 April 2011 16:14, Michael Hanna <taomaili...@gmail.com> wrote: > so how can I use REST by querying for a todo that has a specific > title? I'm not sure how to do this.
So you're still interested in a list of todos, but this time filtered depending on the title. You can have the index action receive a search string via params. And to keep your controller lean, pass this on to a class method or even better, a named_scope in your Todo model which will return filtered results. Regards, Franz -- 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@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.