I'm using Rails, iOS, and devise. I want to read a single user. The path would be users/:id.
I get the following error:
Started GET "/users/0" for 127.0.0.1 at 2012-06-11 17:37:50 -0600
Processing by UsersController#show as JSON
Parameters: {"id"=>"0"}
[Devise] Could not find devise mapping for path "/users/0".
Maybe you forgot to wrap your route inside the scope block? For example:
devise_scope :user do
match "/some/route" => "some_devise_controller"
end
Completed 500 Internal Server Error in 0ms
AbstractController::ActionNotFound (Could not find devise mapping for path "/users/0".
Maybe you forgot to wrap your route inside the scope block? For example:
devise_scope :user do
match "/some/route" => "some_devise_controller"
end
I've tried putting resources :users underneath devise_for :users as well as get "users/:id" => "users#show" and match "users/:id" => "users#show".
Any ideas?