I am having Rails 3.2.3 and it works perfectly fine. Tests pass. Today I made an upgrade from Rails 3.2.3 to Rails 3.2.6.
I did that by changing the Gemfile:
I remove
gem 'rails', '3.2.3'
and add
gem 'rails', '3.2.6'
I run bundle update
. To see if that works, I run all my spec tests. I have a couple of models in there and apparently all the controller#show fail. Just the controller#show. Here is the error message:
Failure/Error: get 'show', :id => product.to_param
ActionController::RoutingError:
No route matches {:id=>"76", :controller=>"products", :action=>"show"}
Here is the code of the test:
let!(:product) { create(:product) }
describe "GET show" do
it "should assign the requested product as @product" do
get 'show', :id => product.to_param
assigns[:product].should == product
end
end
I went to the real link on the web and surprisingly, it's fine. Can anyone help me on this ?