search for: minimum_ag

Displaying 1 result from an estimated 1 matches for "minimum_ag".

Did you mean: minimum_age
2010 Jan 28
1
validates preference of at least one param
...for(@search) do |f| %> <%= f.error_messages %> <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 a...