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

I got this error , help me to understand this , and also let me fix it .

ActiveRecord::StatementInvalid in StatusesController#index

Could not find table 'statuses' Rails.root: D:/projects_Ruby/pingme

Could not find table 'statuses'

Application Trace | Framework Trace | Full Trace app/controllers/statuses_controller.rb:5:in `index' Request

app/controllers/statuses_controller.rb:5:in `index'

Parameters:

None

3 Answers

I have having this issue as well. I was going through lessons and in writing tests something got screwed up so I downloaded the files before the test badge and was going to start over. Upon doing that tried to run rake:db migrate after getting the original error in here, and now I am getting:

rake aborted! You have already activated rake 10.1.0, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.

looks like your test database hasnt been prepared or you need to migrate. did you run rake db:migrate after you created your table?

Hi! Any ideas above? I was having the same issue. hoping to get some help on the issue. Thanks!

Thank you Stone Preston..

My error got resolved .

glad i could help