Neil Bye 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?
you can have id for submit button then on form submission check the id of the submit button in javascript method and based on the submit mutton you can set the form action there and submit the form then. -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

