新手问题 为什么明明我的 route 指定了方法,却还是调用 rails 自身的 update

ForrestDouble · March 30, 2017 · Last by liukun_lk replied at March 30, 2017 · 1909 hits

Controller

VIew

route

@huacnlee

@ 了某个人,意思是只有这个人可以回答问题?

Reply to Rei

@华顺,是因为,很多次他帮我回答了我这种菜鸟问题。。大神快救救我,帮我解决一下

代码里面没有显示调用 rails 自身的 update。没有看懂你要表达的问题。

Reply to sec

就是明明指定了更新的方法 style/update_template_positions,但是,我修改了textare后,rails 调用的还是 Style/update

试试 form_for @style, url: xxxxxxxxxxx, method: :put. log 看下实际请求的 route

先检查一下渲染出来的表单 URL 是否正确

这边加个括号是想干什么??

ForrestDouble closed this topic. 30 Mar 22:26
You need to Sign in before reply, if you don't have an account, please Sign up first.