Forum: Ruby on Rails ho to convert submit button html code to RoR

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.
4287232616a1dde31cd2dab154acad70?d=identicon&s=25 Pepe Sanchez (jsn1)
on 2008-10-10 12:11
Hi all

this is my html code:

<input type="submit" value="Submit" class="submit" />


I want to convert it to RoR

<%= submit_tag 'Submit'   %>

Where do I add the class="submit"   in RoR?

thanks
23e4fc3add5443f51e55663cfc245d24?d=identicon&s=25 Erol Fornoles (Guest)
on 2008-10-10 12:22
(Received via mailing list)
On Oct 10, 6:11 pm, Pepe Sanchez <rails-mailing-l...@andreas-s.net>
wrote:
> Where do I add the class="submit"   in RoR?
>
> thanks
> --
> Posted viahttp://www.ruby-forum.com/.

<%= submit_tag 'Submit', :class => 'submit' %>
This topic is locked and can not be replied to.