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


Jeremy Hertz
Jeremy Hertz
6,095 Points

rails console not working

Whenever I try to use the rails console, I get the following error: http://pastebin.com/5y4hQNUU

I'm using Ruby 2.1.2p95 and Rails 4.1.1

I'd appreciate any help to get rid of the error. Thanks.

2 Answers

This looks to be an issue with readline. If you have readline installed, make sure you also have the development package installed. On YUM-based distros this would do it for ya:

yum install readline-devel
Daniel Cardenas
Daniel Cardenas
Courses Plus Student 9,236 Points

Same thing happened to me. Here's what worked for me.

I added the following code to my Gemfile:

gem 'protected_attributes'

And then I ran bundle in my terminal: treehouse:~/projects/treebook (master *) $ bundle

After that everything seemed to work.