Attribute with multiple parameters
Reported by Jean-Hadrien Chabran | August 5th, 2009 @ 08:34 AM
Hello, here is a feature request
Using named scope like "created_at_after" with helper like "form.date_select" which produces created_at(1i), created_at(2i) ... are not handled.
<% form_for(@foos) do |f| %>
<p>
<%= f.label :bar_at, 'Bar at after' %>
<%= f.date_select :bar_at_after %>
</p>
<p>
<%#= f.label :bar_at, 'Bar at after' %>
<%#= f.text_field :bar_at %>
</p>
<p>
<%= f.label :bar %>
<%= f.text_field :bar_equals %>
</p>
<p>
<%= f.submit :search %>
</p>
It ends in an obvious attribute(xi) not recognized. I can still used a text_field helper and pass a string as shown in the example, but that's not always what can be expected in a search form.
It would be nice feature to have.
JH. Chabran
Comments and changes to this ticket
-
Ben Johnson August 7th, 2009 @ 06:30 PM
- → State changed from new to moved_to_github
[state:"moved_to_github" bulk edit command]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Provides common named scopes and object based searching.
