List Info

Thread: Re: custom REST actions, best practices?




Re: custom REST actions, best practices?
user name
2008-02-23 20:47:42
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )