Have you tried:
:html=>{:id => 'submit',:class=>'calss1'}
On Jan 25, 4:25 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Tom Mac wrote:
> > Hi
> > I have
> > <button type="submit" class="class1"><span>Create </span></button>
>
> > Could anybody say get the same above using railshelper I tried
>
> > f.submit "Create",:class => 'class1' But not correct
>
> Try content_tag -- or just write the literal HTML.
>
>
>
> > Thanks
> > Tom
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.