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 Pointswrong number of statuses id code
i was getting wrong number of status id code, like if i posted a third status, link will show: http://localhost:3000/statuses/10
so i ran rails console, did
Status.delete_all User.delete_all
but still, after creating new user, and posted first status, link still showed: http://localhost:3000/statuses/11
how to get it right??
4 Answers
Jason Seifer
Treehouse Guest TeacherHey arjun menon can you post your code on GitHub and send me a link so I can take a look?
arjun menon
903 Pointsthis is my github link: https://github.com/arjunmenon/treebook
also in d chapter "Integration Testing Friendships" under "Building Social Features in Ruby on Rails", after entering the encrypted_password in users.yml, i still get d error that - expected (:success) but was 302.
and one more thing, project files, under download section, seems not to be updated vis-a-vis chapters.
Jason Seifer
Treehouse Guest TeacherHi arjun menon , I just cloned your application and couldn't reproduce the error you encountered. Try running the following:
rake db:reset
rake db:migrate
Then give it another try.
arjun menon
903 Pointsafter going thru ur suggestion, for d prob in "Integration Testing Friendships" chapter, i still get d error - Expected response to be a <:success>, but was <302> - even after adding an encrypted password field in d users.yml file. no luck!