-
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
Chapter 3: uninitialized constant ApiConstraints (NameError) #13
Comments
Nevermind, had to put "require 'api_constraints" routes.rb. |
I'm facing this same issue, and I'm a little confused about the solution. Are you saying you need to add "require 'api_constraints' inside the routes.rb file? |
Yes the solution is to add the require 'api_contraints.rb'
Rails.application.routes.draw do
end |
I'm getting this same error when doing
|
I got the same issue @dgoradia-atlas. I think the problem is on the gem version? |
@pcofilada I think the issue is that I'm using a newer version of RoR. Here is how I fixed it: In
with:
And I added the following to
|
It's now working @dgoradia-atlas . I think I should use new syntax for my test. |
Hey guys, I'm having the same error. Can someone help me out? I tried the code that pcofilada and dgoradia shared. It doesn't work, maybe I'm missing something or because of the newer version. |
please update the spelling of constraints. |
Hello,
After bundle install, and then doing rails g devise:install, i get this error (screenshot attached)
![screen shot 2015-04-12 at 1 08 04 am](https://cloud.githubusercontent.com/assets/3891992/7104856/7becb52e-e0b0-11e4-9401-81bc8db79fbc.png)
Do you know why this would be happening?
The text was updated successfully, but these errors were encountered: