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

Error after launching Ruby server

After successfully installing Ruby via the new Ruby on Mac video (using rbenv) I'm running into an issue. Upon launching the server with no errors in the rails new testapp creation... I get "TypeError no implicit conversion of nil into String" instead of the Welcome Screen. Can someone help?

so you did not change any code, just created a new rails app?

if you did change code, please paste it here. i got this error working on a project this weekend, but i was working in code already, it wasn't a brand new project.

I spent a few hours with it and I ended up getting everything fixed. I think the issue ultimately was with the sqlite3 gem creation, but it took more than just reinstalling it. I ended up imploding my rvm install from the old videos and reinstalling everything from the new video. After then fixing a bash error I was off and running. I was worried for a while.

1 Answer

While you are waiting for the answer, here are things you can try:

refreshing the browser (for the localhost tab),

stopping the server, then restarting,

Googling for an answer, and

ensure that you launched the server from the right directory.

Hope someone can help you soon, or that you find the answer quickly. It is so frustrating to not have things set up so that you can get going on the course.