Displaying 1 result from an estimated 1 matches for "maximum_age".
2010 Jan 28
1
validates preference of at least one param
...<p>
<%= f.label :category_id %><br />
<%= f.collection_select :category_id, Category.all, :id, :name,
:include_blank => true %>
</p>
<p>
Age Range<br />
<%= f.text_field :minimum_age, :size => 3 %> -
<%= f.text_field :maximum_age, :size => 3 %>
</p>
<p>
<%= f.submit ''Create'' %>
</p>
<% end %>
[/code]
I would like to require at least one parameter in the search, be it a
selected category, a minimum age, or a maximum age.
--
Posted via http://www.ruby-forum.co...