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

Nicholas Roberto
Nicholas Roberto
11,796 Points

Build A Todo List App with rails issue with sublime text

I've been away from treehouse for awhile so there may be a very easy fix to my problem that i'm just not seeing. I've started the build a todo list course in the ruby track and i'm using a mac following along in terminal rather than the virtual machine. I've downloaded the project files and drag/dropped them into sublime text. In the console i've completed as far as the initial commit to git in the second video and I've now hit a stopping point. I cannot seem to get the console to read anything i'm doing in sublime text so when I add the code for 'capybara' etc. nothing happens when I bundle in the console. In the video Jason just launches sublime text offscreen rather than creating a subl file in the console so i'm not sure how to get the console to interact with the sublime text file. I'm still very much a beginner so this is hopefully just something simple i'm missing here.

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

I'm not sure what interaction you mean here and what "console to read anything i'm doing in sublime text" means exactly. You open the folder in Sublime Text, you cd into the project folder in the console and you work in those two windows separately.

Sublime text is simply a text editor - you edit the files that exist on your hard drive with it. In theory it's possible to use windows notepad instead, but custom-made text editors for programmers, like Sublime Text, are better because they do things like colour-code the text to make it easier to read, and it displays your folders on the side of the screen, making navigation easy.

The console is a means by which you interact with your system. Yes, sometimes you might modify files using it, usually just creating files, deleting files (but you can also do these things in your text editor).

Makes sense?

This is not a shameless plug - I made a blog post related to this which I think you might find useful: http://rubywarriors.com/2014/12/05/what-is-ruby-on-rails/ (note that I refer to the 'console' as the 'terminal' in this post. It's the same thing, just a different name.