When running bundle exec rake routes in my app directory I get the following error:
~/Dropbox/code/mcsl2 /master ! ()> bundle exec rake routes
rake aborted!
no such file to load -- app/controllers/api/provider_controller.rb
The file does in fact exist, and the app even loads when running rails s.
Any suggestions on how to track down this error?
EDIT: Here’s the relevant part of routes.rb
namespace :api do
namespace :provider do
post 'authenticate'
namespace :customer do
get '/', :to => 'customer#index'
post '/', :to => 'customer#create'
get '/:id', :to => 'customer#show'
end
end
end
It turns out that I had an issue with the installation of rails. changing my Gemfile back to 3.0.5 for rails (
gem 'rails', '3.0.5') runningbundle update && bundle install, then setting the Rails gem back to 3.0.9 (gem 'rails', '3.0.9'), and runningbundle update && bundle installagain fixed the issue.