Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKris Chery
935 PointsUninitizializtied constant shows up as an error when trying to reach the profile page?
I can't seem to get the profile page to work. I checked the controller, the model but can't seem to pinpoint the problem.
here is my github address: https://github.com/krischery2150/treebookAPP
Any help would be much appreciated.
2 Answers
Chris McKnight
11,045 PointsNo, that's a separate issue. The ProfilesController
isn't being picked up because the file isn't named correctly. In Rails (and most ruby programs), the autoloader determines the class by the folder and/or filename.
You need to rename profile_controller.rb
to profiles_controller.rb
.
Chris McKnight
11,045 PointsYou have a typo in config/routes.rb
.
get 'feed', to: "statutes#index", as: :feed
should be
get 'feed', to: "statuses#index", as: :feed
Kris Chery
935 PointsWill that solve my problem with the profile issue.