Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Installing Rails on Mac

Can access rails in second terminal (and subl . command not working).

Hello,

I just set up my rails environment on my mac (everything updated to latest version). I am experiencing two problems: 1. I can't access rails on a second terminal. I opened another terminal to run the rails server on it and when I enter "rails --version" I get this error: "Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails. You can then rerun your "rails" command."

When I enter "rails --version" on the original terminal I opened it states the version. I cannot do any other rails actions on the second terminal. Do you know why this is happening and how to fix it? I also cannot open sublime via terminal at all. I get this error:"-bash: subl: command not found" Any help with either or both of these issues would be great. Thanks all.

Brandon McClelland
Brandon McClelland
4,645 Points

Have you restarted the terminals since installing everything?

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

To help troubleshoot the Rails issue I first need to know: did you follow the directions in Installing a Rails 5 Development Environment on Mac to set up your environment? If so, can I assume that means you are using RVM?

Regarding the subl issue, there's a solution here.