Hello,
I am researching Ruby and Rails and am having a little trouble. I
have a form that look like this:
<% form_for :book, :url => { :action => :sort } do |form| %>
<%= form.select :sort_type,
Book::SORT_TYPES,
:prompt => “sort reviews by”
%>
<%= submit_tag “Sort”, :class => “submit” %>
<% end %>
--SORT_TYPES is a hash in the Book model class which presents a
couple of choices to the user.
–when the form is submitted to the sort method, how is the value of
the drop down trapped in the controller’s sort method? Nothing I
implement seems to do anything.
Any help would be appreciated.
Thanks,
Dave Hackenyos
Videx Inc. 1105 N. E. Circle Blvd. Corvallis OR 97330 (541) 758-0521
CONFIDENTIAL COMMUNICATION: The email message and any attachments are
intended only for the addressee. They may be privileged, confidential,
and protected from disclosure. If you are not the intended recipient,
any dissemination, distribution, or copying is expressly prohibited. If
you received this email message in error, please notify the sender
immediately by replying to this e-mail message or by telephone