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 cant seem to delete the first profile I made

When I type rails console it just gives me a whole lot of info and doesnt seem to start up the rails console. I then type user = User.first and it tells me the command in not found. any suggestions as to what im doing wrong or if there is a different way to delete the first profile?

2 Answers

Have you tried going to the root of your project and typing "irb" when trying to pull up the rails console?

this worked but now its saying "uninitialized constant user" when i try the "user = user.first" command

Try user = User.first

Im sorry i typed it wrong on here. I did try user = User.first thats what gives me the "uninitialized constant user"

You need to be in the rails console to do this.

Have you tried @user = User.first