简体   繁体   中英

rails' form_for, form_tag no longer working

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!

I 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 and tag_length , which both seem likely to have interfered :p

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM