On 9 September 2011 09:40, coolesting <[email protected]> wrote:
> Because this controller or action name is automatic, it will be stored
> into database instead of that route file.

(please leave some context from the message you're replying to to save
us the hassle of trawling through our deleted items :-/


If your user requests '/books/ruby' with standard routing it would
pass the :id of 'ruby' to the index action of the books controller (if
you want your controller to be '/book/' you'll need to map a custom
route to that).

So in the index action, if you perform some custom operation (like a
case switch on params[:id] or a find_by_other_field) to determine
which other method to call, you should be able to take it from there.

-- 
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.

Reply via email to