格式和客户端验证的问题
出现错误
uninitialized constant Formtastic::FormBuilder(NameError)
,在我的 config/initializers/client_side_validations.rb 中
require 'client_side_validations/formtastic' if defined?(::Firntastic)
#seems like comment this line out will fix the problem
#but I need Formtastic here
做了一些研究,发现这个问题可能是由 client_side_validation 的版本引起的。
在这里,我提供了 gem 的版本,
formstastic(1.2.4)
client_side_validations(3.1.0)
如果您对此有任何了解,请告诉我。
Got an error
uninitialized constant Formtastic::FormBuilder(NameError)
And this, in my config/initializers/client_side_validations.rb
require 'client_side_validations/formtastic' if defined?(::Firntastic)
#seems like comment this line out will fix the problem
#but I need Formtastic here
Did some research and found out this issue may probably caused by the version of client_side_validation.
Here by, I provied the version of the gem
formstastic(1.2.4)
client_side_validations(3.1.0)
If you know anything about this, anything, do tell me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来像是几个错别字:“Firntastic”和“formstastic”。您可能已经解决了这个问题,但如果没有,请看一下。
Looks to my eyes like a couple of typos: "Firntastic" and "formstastic". You've probably solved this already, but if not, give those a look.