I created a new controller for one of my models called Review and named it review_controller, I injected show and update methods into it, but I can not get them to work because the rails did not add paths for the two methods.
I tried to put the following file in the routes file: match "/review/update/:id", :to => "review#update"
But this gives me ActiveRecord::RecordNotFound (Couldn't find Review with ID=update): app/controllers/review_controller.rb:16:in `update'
How can I add the path to the routes file to force my update and show the methods?
thanks
user646560
source share