Ruby Cucumber says path can't find route when Rake Routes show it is there <p>I have Ruby on Rails with Cucumber. The db has been migrated for the test environment and I can see it using sqliteman. The problem is that while rake routes shows the routes I want, cucumber returns an error saysing the routes don't exist. </p> <p>Routes are: </p> <pre><code> movies GET /movies(.:format) {:action=&gt;"index", :controller=&gt;"movies"} POST /movies(.:format) {:action=&gt;"create", :controller=&gt;"movies"} new_movie GET /movies/new(.:format) {:action=&gt;"new", :controller=&gt;"movies"} edit_movie GET /movies/:id/edit(.:format) {:action=&gt;"edit", :controller=&gt;"movies"} movie GET /movies/:id(.:format) {:action=&gt;"show", :controller=&gt;"movies"} PUT /movies/:id(.:format) {:action=&gt;"update", :controller=&gt;"movies"} DELETE /movies/:id(.:format) {:action=&gt;"destroy", :controller=&gt;"movies"} </code></pre> <p>Then, in the same prompt box, I run "bundle exec cucumber" and get this error in two different scenarios in the same feature file:</p> <pre><code>No route matches {:action=&gt;"show", :controller=&gt;"movies"} (ActionController::RoutingError) No route matches {:action=&gt;"edit", :controller=&gt;"movies"} (ActionController::RoutingError) </code></pre> <p>The features/support/paths.rb file fails on the two lines where *movie_path* and *edit_movie_path* are called</p> <pre><code>when /^the details page for (.*)/ mov= Movie.find_by_title($1) movie_path(mov) when /^the edit page for (.*)/ mov= Movie.find_by_title($1) edit_movie_path(mov) </code></pre> <p>Was I supposed to rake routes into the test environment somehow? I'm not sure what I'm missing as it "looks" like all the pieces are there. </p>