uninitialized constant SessionsController in API
问题 I'm writing an API and am trying to login with the API and am getting uninitialized constant SessionsController error followed by the tip to "Try running rake routes for more information on available routes." when I try to go to the URL http://localhost:3000/api/v1/login as a POST My routes show that the route and action exist as shown: api_v1_users GET /api/v1/users(.:format) api/v1/users#index {:format=>"json"} POST /api/v1/users(.:format) api/v1/users#create {:format=>"json"} new_api_v1