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 Ruby on Rails 5 Basics Using the Rails Console Rails Console: Reading Model Objects

Yuichi Narisawa
Yuichi Narisawa
19,548 Points

When I use the console, it crashes.

I use OS X, ruby 2.3.1. As I followed the tutorial, I execute "Post.all" in the console. Then, it crashed with huge "Crash report log". I don't understand what happened. Please help!

Yuichi Narisawa
Yuichi Narisawa
19,548 Points

Hi, Sergei!

Thanks for the info! That was EXACTLY what I need! finally, the console start to work!! You made my day!! Thank you so much!!

1 Answer

Mac OS Sierra? This appears to be a problem with Apple's supplied libsqlite3 not being fork safe. More info can be found here: https://github.com/sparklemotion/sqlite3-ruby/issues/195

  • brew install sqlite3
  • bundle update

restart the terminal (or just type spring stop) and try again