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
Manny Marquez
182 PointsI get an error while working on my rails console
I am at the part in the tutorials where I am syncing my statuses with my name. I am on the last video for the section and it says to delete the old statuses in my console. Each time I attempt to do this I get this error
1.9.3-p392 :004 > status.delete_all
NameError: undefined local variable or method `status' for main:Object
from (irb):4
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
1.9.3-p392 :005 >
Any Ideas on what I can do about this? thank you!
3 Answers
James White
6,159 PointsYour 's' needs to be capitalized to 'S'. I think that's it.
Manny Marquez
182 Pointsso capitalize the s in what part? sorry. And thank you so much for the help
Jack Carr
7,329 PointsPretty sure he is talking about Status