I am a little confused with forms in RoR.
I have a contacts page with a corresponding method in my controller. What I am trying to do is have a form so people can leave a message. I will then be emailing that message to myself.
I have the form and everything created. However, I am a little confused on how I would actually get the data from the form once they hit the submit button. would it just be accessible through my contacts method in my controller using params[:message]
?
Also, what if I had multiple forms on one page? Would I just be doing params[:message1]
, params[:message2]
, etc., in the contacts method in my controller?