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 on Rails application won't show up in Sublime text(windows)

I've been stuck with this problem for a while now, when I work on "building a simple application" on ruby on rails, then try to find it on sublime text, it won't work. http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/generate-a-rails-application <--in this video, the guy just opens up sublime text and the treebook folder is already there. I'm gonna need sublime text for future stages of the project as I keep going further with this. The guy doesn't even show how he found his ruby application on sublime text. Is it because he's using Mac and I'm using windows? I've been stuck with this for a while now and no one seems to know the answer to my problem. If you can please help me, that would be absolutely great. Thank you :)

You can also set up your windows environment to do this. You will need to know the directory where you saved your project on first. If you want you can use sublime text to navigate to the folder and open it as a project so that you can see it next time you open it again. But if you want to be able to do it in the command prompt in windows like he does you will have to make a copy of the sublime text.exe and shorten it to 'subl' for example and then copy the path to the copyt ('subl') and put it in the paths for command prompt. I can give more details latter if this is what you want. Because after setup you can call in the directory in sublime text like 'subl .' and the entire folder will show up in it.

I don't understand what your saying...

1 Answer

you don't necessary have to use sublime to follow the tutorial you can use any editor you wish (my own preference is Rubymine or Aptanastudio) however if you want to use Sublime you can just drag your project folder in Sublime and it will open it for you.

you can also add it to your PATH variable and have it open from the command prompt. here is a link: https://coderwall.com/p/9p4etg or http://stackoverflow.com/questions/9440639/sublime-text-from-command-line-win7

How the hell do I drag my project??? Treehouse is so worthless......I know what this is, I need to be using a Mac, because in the video he's using a Mac and I'm using windows..NOW WHERE AM I SUPPOSED TO GET THE MONEY FOR A MAC???!!!!

Not necessarily, if you saved the work you did must be stored somewhere, as a file. Ok try this open sublime text and write in it and try and save it, it will ask you where to save it at, I am sure if you look in that same directory you will find the file you saved. Every project you have on sublime text if saved must be located in a folder or directory containing all the file(s). It can be a little daunting but try and look a bit more for it and or simply search the explore for a key word to late the file you should be able to drag it straight into sublime text if it is already open, just like you would drag and drop a file. And try and play around a bit with sublime text to get use to it.

Luq, to open a project in sublime text 2 , go to file -> open, then navigate to where you generated your rails application, click on the folder "treebook" and click "open"