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
arjun menon
903 Pointsmajor problem with ruby on rails application file
in "Testing the Statuses Controller" chapter in "Build a Simple Ruby on Rails Application", after making changes to the status_controller_test.rb file and running "ruby -Itest test/functional/statuses_controller_test.rb" , i got an error (not a failure) that instead of redirecting to http://test.host/users/sign_in, redirecting to http://test.host/statuses/9403126.
confused i did rake db:reset(dont know why), and ran d command again, and this time i got "could not find table "statuses" ".
i downloaded d project file, ran bundle install and then rake db:migrate, and d message was: "You have already activated rake 10.0.4, but your Gemfile requires rake 0.9.2.2."
now every time i run d "ruby -Itest command ....", i get "could not find table "statuses" ".
how am i suppose to start again from where everything was going according to d chapter????
3 Answers
George Offley
Courses Plus Student 7,386 PointsTry running the bundle update command, that always worked for me in the paste when I got that message.
arjun menon
903 Pointshey thnx for replying. what i did was i cloned from github what i pushed and then did this: bundle install rake db:setup
and finally ran rake db:test:prepare.
George Offley
Courses Plus Student 7,386 PointsYeah that makes sense, glad you got it going, keep it up!!