How do I change the HTML code generated by “form_input” ?
Is there a way to specify a templete or something like that ?
Thanks
/Simone
How do I change the HTML code generated by “form_input” ?
Is there a way to specify a templete or something like that ?
Thanks
/Simone
Hi,
you probably mean the HTML output by the form helpers like text_field
and friends? I am not aware of any way to specify a template for them
(and I don’t see why such a thing should be useful. Why do you want to
do it?) What you can do is pass in a hash of additional parameters to
control the output (like additional attributes…) or you could always
write your own helpers if you really think that’s necessary.
Michael
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs