Routes: How would default routes be defined manually?

bourne
Sun, 19 Dec 2010 13:15:21 -0000

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 ;) )