What happens if you have get and post on the same method on a controller?

Would it always be get first then if a user clicks on the submit button 
becomes post? How do you set certain conditions that only must happen if a 
user hits the submit button sending a post request?

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/bb557b1f-8e2d-4a4b-83de-a2e9ffbefc0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to