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 trial

Ruby

Rails 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.

Could you copy in your routes.rb file in here and I will see if I can help you out.

Thanks Adam I think i had my route pointing to the wrong place.

No worries. Good that you spotted your own error, usually just looking away then coming back can help find simple errors and typo's.

Hey 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:inrun_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:inrun' # /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:inmap' # /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:inreport' # /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:inrun_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:inblock 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 methodrun_all' for []:Array (NoMethodError)

Try updating rspec in the gemfile to the latest version, run bundle and then try to run the tests again see if works

1 Answer

Also 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.