You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, followed the example on the main README and got this error:
Started GET "/appname/swagger/api" for 127.0.0.1 at 2014-09-04 11:08:22 -0400
ActionController::RoutingError (uninitialized constant SwaggerController)
my app is mapped to /appname/swagger/api via config.ru instead of '/swagger/api'.
$ rake routes
...
swagger_yard_engine /swagger SwaggerYard::Engine
Routes for SwaggerYard::Engine:
doc GET /doc(.:format) swagger#doc
api GET /api(.:format) swagger#index
GET /api/*resource(.:format) swagger#show
Do I need an addtional require?
The text was updated successfully, but these errors were encountered:
BTW, I found the correct constant: SwaggerYard::SwaggerController in ObjectSpace. The param[:controller] is 'swagger', which resolves to SwaggerController. I've changed this param to 'swagger_yard/swagger' in pry-rescue and it correctly resolves to SwaggerYard::SwaggerController, so it seems like some problem with pathing/loading.
coldnebo
added a commit
to coldnebo/swagger_yard
that referenced
this issue
Sep 5, 2014
Hi, followed the example on the main README and got this error:
my app is mapped to /appname/swagger/api via config.ru instead of '/swagger/api'.
I added to the routes.rb as advised:
and rake routes shows the new routes, correctly.
Do I need an addtional require?
The text was updated successfully, but these errors were encountered: