如何向使用 formattastic 制作的表单字段添加描述?
我尝试过这个:
f.input :first_name, description: 'Please insert your first_name'
描述应出现在表单字段的正下方。
谢谢
最佳答案
格式字段没有描述选项,但您可以使用 :hint 选项代替
f.input :first_name, :hint => 'Please insert your first_name'
关于ruby-on-rails - rails : Formtastic field with description,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12261570/