On 25 December 2015 at 07:16, fugee ohu <fugee279@gmail.com> wrote:
> how does rails know if it should submit a form to update or create? the form
> is rendered by either new or edit so on submission how does rails know which
> action originally rendered the form?
Have a look at the html for the edit and new pages and I think you
will see a difference. Look at the form tag in particular.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt3mhMo0St_-O7b5i-2VZ9sQiqa%2BTwcAM%2B-Dd3MiXZ6XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment