You can also just add another public method to the controller. For instance, instead of using StoryController.update for updating the comments, you could use something like StoryController.add_comment.
On Mar 5, 4:07 pm, Colin Law <clan...@googlemail.com> wrote: > On 5 March 2010 20:33, Neil Bye <li...@ruby-forum.com> wrote: > > > I have a 'new' page with a submit for creating stories. On the 'show' > > page the submit allows a user to enter comments. I now want a 'edit' > > page for the stories with another submit for updates. I have used the > > 'create' and 'update' methods in the stories_controller on the 'new' and > > 'show' pages. What method can I use for the submit on the 'edit' page? > > Use update again. There is no problem calling the same action from two views. > > Colin -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.