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 trialAlphonso Morris
Courses Plus Student 167 PointsRails ToDo_Lists App Errors
I followed the directions in the tutorial but I keep getting this error "No route matches [GET] "/todo_lists". Everything was smooth up to this point.
Alphonso Morris
Courses Plus Student 167 PointsThanks Adam I think i had my route pointing to the wrong place.
Adam Sackfield
Courses Plus Student 19,663 PointsNo worries. Good that you spotted your own error, usually just looking away then coming back can help find simple errors and typo's.
Alphonso Morris
Courses Plus Student 167 PointsHey Adam, I ran into another error. Im still creating my todo list app but when I try to run bin/spec I get this error.
1) Creating todo lists redirects to the todo list index page on success
Failure/Error: Unable to find matching line from backtrace
undefined method run_all' for []:Array
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:116:in
run_hook_filtered'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:175:in eval_before_alls'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:230:in
run'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in block (2 levels) in run'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in
map'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in block in run'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:12:in
report'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:24:in run'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in
run_in_process'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in run'
# /Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in
block in autorun'
Finished in 0.00014 seconds
1 example, 1 failure
/Users/amorris/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:116:in run_hook_filtered': undefined method
run_all' for []:Array (NoMethodError)
Adam Sackfield
Courses Plus Student 19,663 PointsTry updating rspec in the gemfile to the latest version, run bundle and then try to run the tests again see if works
1 Answer
Adam Sackfield
Courses Plus Student 19,663 PointsAlso I believe if you continue on with the video it will fix this error, as with rails it's test driven development so you write a failing test and then the code to make it pass.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsCould you copy in your routes.rb file in here and I will see if I can help you out.