views:

407

answers:

1

I'm using the Formtastic Rails gem in my app and its been great, but I would really like to add a second button, other than the bundled "commit" button that redirects back. I can't seem to find any information on how to add a custom button. Any information would be greatly appreciated!

+1  A: 

There's no custom or alternate buttons at this stage. You still have access to the raw HTML, ERB, Rails helpers, etc. Just use those.

Justin French
Thanks for your reply, Justin. I noticed that formtastic puts the button in a nice <ol> with an <li>. Is there anyway to tell formtastic to include my ERB code in another <li>. Currently, I have http://pastie.org/892364and it will include my link in the <ol>, but not give it an <li>. I feel like I'm just not using it properly.
jklina
Yup, you need to add your own LI.
Justin French