On Jan 5, 5:26 am, Mislav Marohnić <[email protected]> wrote:
> 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? Additionally (and something I probably should have itemized), these aren't all blind helper methods. Both number_field_tag and range_field_tag have :min and :max attributes that can be set using a range and :in (to match the syntax of other Rails helpers). >> number_field_tag "quantity", nil, :in => 0..10 => '<input name="quantity" id="quantity" type="number" min="0" max="10" /> Stephen -- 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.
