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
RescaleOp
}) %>
<%= 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?
Thanks.
Jennifer
On Apr 17, 7:49 am, jlesleyball
<jlesleyb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi
>
> 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?
>
> Thanks.
> Jennifer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---