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 trialAshley Putnam
399 PointsRails Server Stopped Working
Before the "Creating To-do Items" segment, my project was working perfectly. The VM was setup and I coud "rails s" and get things going. After I added the new code from this section, the rails server will not even boot. I get a this:
"Exiting /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `load': /home/treehouse/projects/odot/config/routes.rb:26: syntax error, unexpected keyword_end, expecting end-of-input (SyntaxError)"
and a list of dependencies.
What should I do?
2 Answers
Daniel Cunningham
21,109 PointsStart by checking line 26 of Routes.rb and make sure that everything is correct with the syntax. Possibly post that if you want a few more sets of eyes on it as well. The error is "unexpected keyword_end, expecting end of input" which suggests that an "end" or perhaps a comma, close parenthesis or other syntax issue is causing the code to break.
Ashley Putnam
399 PointsI left out a "do" early on in my routes.rb. All is working again. Thanks for your help.