我已经附加了我的页面+ posts_controller.rb页面,我遵循了本教程中的说明 def create if @post.save(post_paramsUpdate action updates the post with the new information if @post.update_attributes(po
我已经学习Rails大约6周了,所以我还是个新手!commentable = find_commentable end
params.eachreturn $1.classify.constantize.find(value) end end
这都是根据教程,但仍然返回“无路由匹配我已经尝试过将路由作为嵌套资源