Sneaky Abstractions

Subscribe to my Feed, follow me on , recommend me on Working With Rails or see my code on GitHub

Comment

You're viewing a comment to the post Buttons? What buttons?

By Benedikt Köppel at

Hi, I’m trying to get this button-to-script work with my website. I put the javascript from above into ‘application.js’, and it gets included by ‘javascript_include_tag :defaults’. But I don’t have my buttons generated with button_to, but with ‘submit_tag …, :class => ’button-to’. This should work, shouldn’t it?

I checked with Firebug, that my <input type=“submit”-tags have the class set to button-to, and thats okay. But those buttons just stay normal.

What are the points I have to look at, to get it really work?

Thanks, Benedikt

Ice Ice Baby