Taking the unsafe GETs out of Rails
Tom Moertel: So, how do we make doing the right thing as
easy as creating a link? My answer is button_to
, a
method that takes the same parameters as the ever-popular
link_to
but creates a tiny form that contains a single
button instead of a link
Richard Soderberg: Here’s a bit of CSS to make all INPUTs of class="hyperlink" resemble hyperlinks more closely (Though, like Phil, I wonder why buttons look like that).