Open twoneks opened 8 years ago
I just had the same problem when I started API versioning.
It happened to me because I used several modules/namespaces for my versioning, and api!
creates the url's automatically from routes.rb but couldn't handle my different modules.
I fixed it by just using e.g. api :GET, "/users/:id", "Show user profile"
instead of api!
Hope that helps.
I have the same issue, @Mexxerio tried your approach but still seems to be crashing with Circular dependency detected while autoloading constant Api::V1::DeviseTokenAuth::SessionsController
@jeanlinux I ran into the same issue, when trying @Mexxerio 's approach, I found I had to make the api!
to api
change in both the parent and subclass controllers. Hope that works for you.
This is still less than ideal since hardcoding the route makes the API docs potentially inaccurate.
Hi guys after almost 2 days I figured out that this error is caused by Apipie. Please look at this post http://stackoverflow.com/questions/34759750/circular-dependency-detected-while-autoloading-constant-controller I have
in my
feedback_controller.rb
.The problem occur only when I call his son
given_feedback_controller.rb
orreceived_feedback_controller.rb
and not when I call himself.Doing so everythings work