问题
I'm new to Ruby on Rails. Here’s what I’ve done so far:
I’ve installed XCode, Homebrew, RVM, Ruby and Rails.
Now how do I get Sublime Text 2 to work with Ruby on Rails?
回答1:
First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text.
Sublime Text has native support for syntax coloring in .rb files, so you don't have to install anything for that. Dragging your project folder and dropping it on Sublime Text will open it.
Keep in mind, though, that Sublime Text is simply a text-editor - not an IDE. You won't get a lot of help like code completion (although there are plugins that can help a bit) or complaining when your syntax is wrong (again, there might be a plugin for this). For that, look at something like Netbeans or IntelliJ IDEA.
回答2:
You can download and install Sublime Text if you haven't done yet from sublimetext.com.
Here is an installation guide for OS X Terminal that I found cool.
You should install Package Control for Sublime Text.
Then I suggest you check out these videos:
- Sublime Text 2 Tutorials #1 - Installing & Overview
- Perfect Workflow in Sublime Text 2
It's worth spending time with it once, and it will save a lot of time in the future.
来源:https://stackoverflow.com/questions/17900131/how-do-i-get-sublime-text-2-to-work-with-ruby-on-rails