解决网页报错: No route matches [GET] "/admin/jobs/1/publish"

Published on:

今晚在完成招聘网站第三遍的最后第五部分的时候,网页报错:No route matches [GET] "/admin/jobs/1/publish"

经过检查,原来是admin/jobs/index.html.erb文件中的publishhide按钮,少加入了method: :post

Comments

comments powered by Disqus