Wednesday, May 4, 2011

Adding routes to rails3 - rspec2 (controller tests)

I was working on migrating an existing Rails 2 app to Rails 3. And I came across a weird issue. All my controller specs started to fail with error - route not found even though all my routes were in place.

After some more reading in the rails routing module - found it overwrites the routes if you open the block and pass on extra routes


Hope this will save few hours of your development :))

No comments: