Strange AbstractController::ActionNotFound Error with update method in Rails

后端 未结 2 1483
走了就别回头了
走了就别回头了 2021-01-16 01:22

I have FamiliesController with these actions:

def edit
 @family=Family.find(params[:id])
end

def update
    @family=Family.find(params[:i         


        
2条回答
  •  情歌与酒
    2021-01-16 01:42

    I moved the

    resources :families

    to top of the routes.rb. And now it works fine.

    Don't no why it is so.

提交回复
热议问题