-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.1 Routing error #64
Comments
Mind showing us what your routes file looks like, as well as the output from rake routes? |
Is the |
It's not working for me either, here is my command: "curl -H 'Accept: application/application/vnd.marketplace.v1' http://api.market_place_api.dev/users/1" . I have Here is my routes.rb: MarketPlaceApi::Application.routes.draw do devise_for :users namespace :api, defaults: { format: :json}, constraints: { subdomain: 'api' }, path: '/' do
end end |
Any errors being produced? Do you see the connection being attempted from your rails console? |
@OxenBoxen is there any update on this? were you able to solved it? |
I have the same problem too..
this is my route file
this is my curl command also, my main question.. can we do this without actually starting a server at thanks |
I was able to make this work based on the following answer from Phanindra
later I try to use the namespaces as in the guide, but right now it is not my priority I do the following curl command and I receive the json response,
I have a server running on |
I"m getting a
ActionController::RoutingError (No route matches [GET] "/users/1.json")
I have tried
curl -H 'Accept: application/api.bluemage.systems.v1' 'http://10.0.0.11:3000/users/1.json'
curl -H 'Accept: application/api.bluemage.systems.v1' 'http://10.0.0.11:3000/users/1'
curl -H 'Accept: application/api.bluemage.systems.v1' http://10.0.0.11:3000/users/1
and none of them work, the route shows up with rake routes.
The text was updated successfully, but these errors were encountered: