I have a button_to call in my Rails 4 haml file that looks like this
= button_to("Click Me", action: "click", class: "btn btn-primary")
However, the class: "btn btn-primary"
code snippet isn't working properly, and my button isn't changing. I've also tried the old Ruby syntax of :class => "btn btn-primary"
, but that doesn't seem to do the trick.
Any help would be greatly appreciated.