On Mon, Jan 4, 2010 at 15:31, Stephen Celis <[email protected]> wrote:

>
> Some may feel that something like "text_field_tag 'email', nil, :type
> => 'email'" is good enough, but this doesn't work for "text_field"
> because any "type" option is overridden to "text" (this could be fixed
> with a smaller patch).


I suggest making this smaller patch, since it fixes a bug that prevents
people from specifying arbitrary types for form inputs. Next, I would make a
patch that adds method_missing to form builder and allows things like
`anything_field`, which creates an input with type="anything". This is might
be a good future-proof solution until the HTML5 spec is finalized—what do
the others think?

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.


Reply via email to