> On Sep 1, 2015, at 3:16 PM, John Lahr <johnel...@gmail.com> wrote: > > You're right it shouldn't matter but when things aren't working like they > should be without any obvious explanation you try everything. > > And BTW > > <div class="actions form-group"> > <%= f.submit class: 'btn btn-success' %> > </div> > > That shouldn't work either if you copied and pasted right from your code > because there's a comma missing between submit and class
No, there should never be a comma before the first argument, only after it. I’ll write it out with parentheses so you can see the reason why. <%= f.submit( class: ‘btn btn-success’ ) %> Walter > > (I did test f.submit, class 'btn btn-primary' just now on my lunch break and > it worked for me as I expected, so there's something else in the original > posters code causing the issue) > > -- > 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-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAEBjNa3u5f-zTFQukuOidmA9EVkjDv6BsJecr4bWm3tEZL2G8g%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- 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-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/87907EB0-D3EB-416F-B413-4B9B853C42C8%40wdstudio.com. For more options, visit https://groups.google.com/d/optout.