导轨' form_for、form_tag 不再起作用
我的 Rails 应用程序中有多种表单,直到昨晚为止都运行良好。由于没有对任何与表单有关的内容进行实际修改,我的任何表单标签都不再显示在 HTML 中。
是否有任何快速解决方案,或者有任何已知的原因会发生这种情况?谢谢!
I have multiple forms in my rails app that were working perfectly up until last night. With no actual modification of anything to do with forms, none of my form tags are even showing up in the HTML anymore.
Is there any quick fix for this, or any known reason this would occur? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案!
没有错误,但发生的事情是我昨晚创建了两个辅助方法,其中一个或两个与表单生成中使用的名称相冲突。
我的方法是
concat
和tag_length
,这两个方法似乎都可能产生干扰:pI found the solution!
There were no errors, but what happened was I had two helper methods I created last night, one or both of them were conflicting with names used in form generation.
My methods were
concat
andtag_length
, which both seem likely to have interfered :p