# Forms without a database with Rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069>\
**Category:** Rails\
**Created:** [April 17, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069 "2008-04-17T16:50:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlesleyball](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/48db29/32.png) [@jlesleyball](https://www.ruby-forum.com/u/jlesleyball)\
**Post date:** [April 17, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069/1 "2008-04-17T16:50:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jlesleyball](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/48db29/32.png) [@jlesleyball](https://www.ruby-forum.com/u/jlesleyball)\
**Post date:** [April 17, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069/2 "2008-04-17T17:30:25Z")

</div>

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
