Grary
2010-Feb-25 17:41 UTC
accepts_nested_attributes_for vs. multiple controllers on one page
Hi, I''d like to render the results from show, create, edit and delete actions for several different models (one controller per model) on one page. While these several models are conceptually related, they do not need to be associated with each other. So, I''d rather not impose associations on them just to use accepts_nested_attributes_for to facilitate their presentation in a common form. All I want is a page that presents the several models, links to their associated actions, and, finally, the results of these actions. As a beginner, I''m having a hard-time fitting this requirement into the RESTful approach, where, as I understand it, each action is associated with at most one view. Any comments? Thanks, Grar -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Grary
2010-Feb-25 17:42 UTC
accepts_nested_attributes_for vs. multiple controllers on one page
Hi, I''d like to render the results from show, create, edit and delete actions for several different models (one controller per model) on one page. While these several models are conceptually related, they do not need to be associated with each other. So, I''d rather not impose associations on them just to use accepts_nested_attributes_for to facilitate their presentation in a common form. All I want is a page that presents the several models, links to their associated actions, and, finally, the results of these actions. As a beginner, I''m having a hard-time fitting this requirement into the RESTful approach, where, as I understand it, each action is associated with at most one view. Any comments? Thanks, Grar -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- ruby update on OS X 10.5 and I now this: "Rails requires RubyGems >= 1.3.2"
- accepts_nested_attributes_for :reject_if issue
- Question about PATCH method, accepts_nested_attributes_for, and updates to association lists (has_many, HABTM)
- Recommendations for pdf generators
- accepts_nested_attributes_for how, example