Forms without a database with Rails 2.0.2


I’m trying to create a simple HTML form with just one drop-down box (a
select tag, I guess) and a button to submit the selected value, and my
app has no models. Can anyone point me to a good reference or perhaps
a code snippet?


Well, I think I have the form itself right, but I’m not getting the
value back in the controller. I have this in my form:

<% form_tag :action => ‘seeimage’ do -%>
<%= select_tag ‘operation’, options_for_select(%w{ Grayscale LookupOp
}) %>
<%= submit_tag “Submit” %>
<% end -%>

And then I have this in my controller:

@data = params[:operation]

And then I have a case statement.

What am I doing wrong here?


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