Forum: Ruby on Rails text_field_tag html class

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.
7864d809993744583d15b0f0a2f8dded?d=identicon&s=25 Marius Zilenas (Guest)
on 2006-03-10 22:16
Hello,
how could I define class for input textfield,
text_field_tag('somefieldname',nil,:class => 'txt') doesn't work ? :(

Marius Zilenas
7864d809993744583d15b0f0a2f8dded?d=identicon&s=25 Marius Žilėnas (kronidas)
on 2006-03-10 23:44
Marius Zilenas wrote:
> Hello,
> how could I define class for input textfield,
> text_field_tag('somefieldname',nil,:class => 'txt') doesn't work ? :(
>
> Marius Zilenas

Hello,
sorry, false alarm !:)
text_field_tag('somefieldname',nil,"class" => 'txt') should work !:)

Marius Zilenas
This topic is locked and can not be replied to.