> @posts = Post.all > > <% form_for @posts do |f| %> > <% fields_for :post %> > ... > <% end %> > <% end %> > > What do you think?
I think most of the time the better solution here is to have an 'owning record' of some sort. For example: <% form_for @blog ... %> Otherwise what would go in the controller action? What would we be calling .attributes= on? -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---