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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Jeremy Hertz](https://secure.gravatar.com/avatar/9c012082776aac1daa64714e561270ca?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jeremy Hertz
6,095 Pointsrails 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
![Bob Hensley](https://secure.gravatar.com/avatar/85e2fd5bc6ad90d667f8fa9901bdb473?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bob Hensley
26,781 PointsThis 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](https://uploads.teamtreehouse.com/production/profile-photos/130487/micro_Walle.jpg)
Daniel Cardenas
Courses Plus Student 9,236 PointsSame 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.