-
Notifications
You must be signed in to change notification settings - Fork 12
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
Routing error: uninitialized constant Api::V1::Category #5
Comments
Hey, |
I wouldn't open an issue without having put a fair amount of fight )) But yeah, I restarted the router like probably a dozen times, and went over the code (it wasn't much, really) quite a few times. |
Could you use the following syntax in your routes?
Also please respect the spaces. I know it doesn't matter but it makes reading the code easier and everything more consistent for larger projects. Thanks for reaching out!! Silvia |
Thanks Silvia, but that syntax is allowed in hashes with symbol keys since version 1.9.. Also, in your original repo, none of the gems in your |
Hey there! |
So you say my project works on your machine with the edit on routes? I still get the same error. What's your ruby version? |
$ ruby -v |
Oh boy, I deleted the project folder, cloned my repo, bundle update(This time I change Rails in the Gemfile to the version you use), and now am getting |
I sent you a PR regarding the routes. Also please do not run bundle update, use the version from my repo by looking at the Gemfile.lock. |
Yeah, I merged your PR. Now, I've copy/paste your Gemfile.lock, run bundle, and same weird |
It is better to use the information in ghe Gemfile.lock to specify a specific version of a gem in your Gemfile. |
Wow, girl you are tough, I don't know where are you based but here in Moscow(I'm spanish though) is past 5, so I'm gonna wrap up. Thanks for your help. |
Hey Silvia, I got it working. It was indeed a silly eye-straining error on my side, that slipped our defenses: get 'category/:category', :to => 'category/#show' See that slash before the Anyways, I ended up starting over here wicked where I used the most up to date versions of all gems, hopefully I won't find problems along the line. Indeed I hit the |
Hey @Bifork, |
Thank @hiromipaw for your reply, Silvia. Though I cannot hope for a big revamp in your spring release. But I do wish you could take time to expand your wonderful topics to greater detail. Right now, your book seems to be friendly to really experienced developers. I wish you could include the user model and authentication solution from the start. Then a RESTful resources owned by a user and conversations/comments about a RESTful resource object between users. Besides the relationship/association between models, if you can include a transaction like payment or ownership transfer, it would be all too great. I can imagine you are incredibly busy, especially for a girl who pursues highest academic degree besides cutting-edge programming skills. But I believe, if you spend time to write an awesome popular book, you can make money while you're sleeping or playing on your beautiful beaches. I wish I could be a great author after becoming very skilled. But I'm not experienced yet and still slowly researching. A foggy world to me right now. Muchas gracias:) |
Hi, I'm in page 94 following along, and running the first
curl
throws the error mentioned in the title.This is my wikicat project in case you wanted to check.
Rails 4.2.4
Ruby 2.2.2p95
The text was updated successfully, but these errors were encountered: