Formattastic,符号预修改
我在 Formtastic 表单上输入/选择
f.input :some_model_values, :as => :select
问题是我需要预先定义:some_model_values。因为某些用户角色必须查看所有列表,而另一些则不能。
怎样才能做到呢?
谢谢。
I have input/select on Formtastic form
f.input :some_model_values, :as => :select
The problem is i need to pre define :some_model_values. Because some users roles have to see all list, and some others not.
How it can be done?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在你看来:
在你的助手中:
in your view:
in your helper: