> On Sep 1, 2015, at 2:32 PM, John Lahr <
john...@gmail.com> wrote:
>
> One issue I had when I was trying to get bootstrap fully to work was that I hadn't included it in my application.js file (i know for sure i needed it for drop downs, I don't know what else you might need it for). So if you haven't done that I'd look at the code.
>
> Honestly though <%= f.submit, class: 'btn btn-primary' %> always works for me (have you tried it purely the basic way with out :sample that you showed earlier?)
> I'd make sure that the bootstrap is in your application.css.scss (or application.scss file if you wish) so that it does cascade to all pages.
I have nothing to add here, this has always “Just Work™”ed for me.
<div class="actions form-group">
<%= f.submit class: 'btn btn-success' %>
</div>
...is copied and pasted out of an erb form I’m working on right now.
Walter
> 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
rubyonrails-ta...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAEBjNa2Vv_OOUk%2BtWdKmKQ-Mu0ch4yrsSmTPXr_X%3DjwTYPo-1Q%40mail.gmail.com.