How do I get Sublime Text 2 to work with Ruby on Rails?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 15:26:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!