Roelof Wobben wrote in post #1154953:
> For my project I need a button which produces this in html ;
>
> <button class="btn btn-blue" type="submit">Submit</button>
>
> I tried already <button tag> and <content_tag> but also that did not
> produce the output as I expected.
The button_tag signature:
button_tag(content_or_options = nil, options = nil, &block)
button_tag("Submit", { class: "btn btn-blue" })
=> <button class="btn btn-blue" name="button"
type="submit">Submit</button>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/6fe390873e3430475e6b092ba60ae120%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.