#112 ✓moved_to_github
Jean-Hadrien Chabran

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| %>
      <%= f.label :bar_at, 'Bar at after' %>
      <%= f.date_select :bar_at_after %>
      <%#= f.label :bar_at, 'Bar at after' %>
      <%#= f.text_field :bar_at %>
      <%= f.label :bar %>
      <%= f.text_field :bar_equals %>
      <%= f.submit :search %>

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

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.

New-ticket Create new ticket

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.

People watching this ticket