Forum: Ruby on Rails change HTML gnerated by form_input

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Simone (Guest)
on 2006-03-18 20:30
How do I change the HTML code generated by "form_input" ?

Is there a way to specify a templete or something like that ?


Michael Kaiser (Guest)
on 2006-03-18 22:57
(Received via mailing list)

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.

This topic is locked and can not be replied to.