-
Notifications
You must be signed in to change notification settings - Fork 130
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
Route cannot be generated in Rspec 3 #108
Comments
Still having this problem, @Sutto any idea? |
Try that ( api versions: 1, allow_prefix: 'v', module: "api/v1" do
resources :projects, only: [:index, :show, :create, :update]
end |
I kinda gave up on RocketPants due to this, so someone else will have to try this out. |
@manuelmeurer What gem/solution are you using? |
I was looking at https://github.com/rails-api/rails-api but since I need HTML rendering too, I'll probably go with regular Rails. |
Sorry guys - I feel like this is a bigger part of an issue and forgot about it quite a while ago, quite by accident. It'll be looked into again in the near future, and hopefully I can work out the correct solution then. Thanks! (and sorry :() |
I ran into the same situation. Any updates here? |
Same here. |
I'm having a similar problem with InvalidVersion exception being raised. I've tried everything and can't figure out the cause. |
Hmm I may be running into this as well, hitting it during testing getting: I would expect the controller params to be api/v3/people? generated routes look correct: Ah duh - fixed - when moving controllers around, don't forget to move your tests into the new module folder ;) 🎉 |
I'm using Rocket Pants 1.10.0 with Rails 4.1.4 and Rspec 3.0.0. With previous Rspec version this worked:
Now I get this error:
When I change
default_version 1
todefault_version 'v1'
, the route is generated but in the log file it says:Relevant part of my routes.rb:
Any idea what might cause this?
The text was updated successfully, but these errors were encountered: