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 Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

Anders Lund
Anders Lund
3,061 Points

ruby on rails

when i got like a file in my terminal and I want to open it in sublime 2, how do i do that? tnx!

3 Answers

Laura Cressman
Laura Cressman
12,548 Points

I thought it was "subl file.rb", from the videos, but I'm struggling to get that to work for me too :/

Kevin Hackett
Kevin Hackett
10,441 Points

Hi,

Yes, the command line tool is "subl" followed by the file path you wish to open.

However, you may need to carry out the steps outlined in the Setup section of this page in order for this keyword to work:

http://www.sublimetext.com/docs/2/osx_command_line.html

David Moore
David Moore
13,916 Points

As as alternative, you can browse to the file in Sublime's File->Open dialog and open it that way.