api-presentation icon indicating copy to clipboard operation
api-presentation copied to clipboard

Routing Error uninitialized constant API

Open Captain1 opened this issue 9 years ago • 3 comments

http://localhost:3000/api/v1/contacts/ Rake routes: Prefix Verb URI Pattern Controller#Action api_v1_contacts GET /api/v1/contacts(.:format) api/v1/contacts#index {:format=>:json} POST /api/v1/contacts(.:format) api/v1/contacts#create {:format=>:json} api_v1 GET /api/v1/contacts/:id(.:format) api/v1/contacts#show {:format=>:json} PUT /api/v1/contacts/:id(.:format) api/v1/contacts#update {:format=>:json} DELETE /api/v1/contacts/:id(.:format) api/v1/contacts#destroy {:format=>:json}

Captain1 avatar Mar 14 '15 12:03 Captain1

This should now be fixed. This problem only happens with case sensitive filesystems (I wasn't seeing any errors with a standard Mac).

aomran avatar Mar 14 '15 15:03 aomran

@aomra015 I am using Ubuntu14.04 64bit. Did you say you just updated the content?

Captain1 avatar Mar 16 '15 12:03 Captain1

Yeah the last commit I made changed the case of the api folder. Unfortunately I can't verify the fix without deploying this code to a linux server. Is it working for you?

aomran avatar Mar 16 '15 13:03 aomran