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: You need to run the bin/rails execution

I keep getting a message Bummer! you need to run the bin/rails execution.

I type $ bin/rails generate or whatever sub command is required, but I keep getting that error... and it prevents me from continuing.

3 Answers

I'm just curious. Are you doing the new rails course? Cause I was having a lot of problems getting things up and running with Rails, and then I found there's a newer Rails course that should be less buggy. I haven't tried it yet cause I'm doing Python right now. This is the course I was referred to.

Ilya Dolgirev
Ilya Dolgirev
35,375 Points

Try to prepend your rails command with bundle exec.

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Just to be sure, you're not actually typing the $, right? That's the prompt for you to type something on Unix/Linux systems, and you shouldn't type it again yourself.