Hi. I have 2 controllers UsersController and GroupsController. Each of
them RESTful.
For browsers, I wish to display users and groups data in the same HTML
page. This doesn''t play well with REST, so I''m wondering what
the best
approach is.
I could create a UsersAndGroupsController which renders the appropriate
templates, and when someone submits a write operation from the
interface, that would hit eg. the GroupsController, which would
format.html { redirect_to :controller => ''usersandgroups'',
:action =>
''index'' } which would be somewhat DRY.
Anyone have ideas for other more elegant approaches?
Br,
Morten
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---