Forum: Ruby on Rails change HTML gnerated by form_input

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8972cc9942765a7bc043315effde18f5?d=identicon&s=25 Simone (Guest)
on 2006-03-18 19:30
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
1e90246fc67e699c32e59db89d4ff5c3?d=identicon&s=25 Michael Kaiser (Guest)
on 2006-03-18 21:57
(Received via mailing list)
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 topic is locked and can not be replied to.