简体   繁体   English

如何将自定义按钮添加到Formtastic?

[英]How do I add custom buttons to Formtastic?

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. 我在我的应用程序中使用了Formtastic Rails gem,它很棒,但是我真的想添加第二个按钮,除了捆绑的“提交”按钮可以重定向回去。 I can't seem to find any information on how to add a custom button. 我似乎找不到有关如何添加自定义按钮的任何信息。 Any information would be greatly appreciated! 任何信息将不胜感激!

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. 您仍然可以访问原始HTML,ERB,Rails帮助器等。只需使用它们即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM