I am quite new to rails and even after reading the docs to routes I still do
not manage to simply duplicate the new route:
<%= link_to 'New Priority', new_priority_path %> --> <%= link_to 'Add
Priority', add_priority_path %>
resources :priorities do
member do
get 'add'
end
rake routes:
add_priority GET /priorities/:id/add(.:format) vs. new_priority GET
/priorities/new(.:format)
Is there any doc how the 7 default routes would be declared, especially new
and create, if I would want to duplicate them (I don't, I just want to
understand ;) )
--
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.