search for: form_submit

Displaying 1 result from an estimated 1 matches for "form_submit".

2006 Feb 02
1
ordering of params
...l out the user''s response on the form. So I have something like: # View <%= text_field ''answer'', ''name'' %> Name <br /> <%= text_field ''answer'', ''email'' %> Email <br /> ...... # Controller def form_submit answers = params[:answers] email_text = "New form submission receieved" answers.each do |question, answer| email_text << "#{ question.humanize }: #{ answer }\n" end # send email end However, I don''t iterate through the answers in the order that they...