Is there a Rails library that allows you to insert form buttons and use them as hyperlinks instead? I think I've seen it somewhere before.
+1
A:
Yes, you can use button_to
, but in general it's not a great idea.
The button_to
helper is implemented as a form POST by default, which means it's a bad choice for actions that aren't idempotent (i.e. regular GET actions). Stick to links as much as possible.
Gareth
2009-05-24 01:11:46
Agreed.If it must look button-like, then use CSS.
Matthew Schinckel
2009-05-24 01:47:21
Cool. Is there a way to style it and make these buttons/fonts bigger?
alamodey
2009-05-24 01:50:12
And when I use consecutive button_to's, they go on separate lines. Is there a way to keep them side by side?
alamodey
2009-05-24 04:33:05