Checking form submission

I’m working on a rails app where some of the content is located in
“static” rhtml files. How should I access form parameters in these
files so that something like the following will work(simply checking
whether a form has been submitted):

require ‘cgi’
cgi =

if cgi[‘myquery_input_submit’] == ‘1’
test = 1
test = ‘none’
<%= test %>
<%= ‘my input’ + cgi[‘myquery_input_submit’].to_s%>


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs