simple_form_for 错误:rails 3 中参数数量错误(3 为 2)
我在 Rails 3(使用 haml)中遇到 simple_form_for 标记的参数数量错误(3 for 2)错误。 有趣的是,不久前它运行良好。
= simple_form_for(:user,@user, :url => user_path, :remote => true, :html => { :id => "locate", :class=>"locateform" }) do |f
任何指示/帮助都会很棒。
谢谢
I am getting wrong number of arguments (3 for 2) error for simple_form_for tag in rails 3 (with haml).
Interestingly it was working fine some moment back.
= simple_form_for(:user,@user, :url => user_path, :remote => true, :html => { :id => "locate", :class=>"locateform" }) do |f
any pointers/help would be great.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这部分看起来很可疑。
您是否不小心删除了
:as =>
?我认为应该是This part looks suspicious.
Did you acciddentally delete the
:as =>
? I think it should be