having
map.resource :account do |account|
account.resource :gallery
end
in your routes you'll end up with
> a page with the basic profile information (name,
avatar, interests, etc)
get /account, mapped to AccountsController#show
> as well as a Gallery page that show the pictures
and get /account/gallery mapped to GalleriesController#show
fairly restful and no custom actions at all
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|