| 1 |
It is minor mode for editing "Ruby On Rails":http://rubyonrails.org/ code with "Emacs":http://www.gnu.org/software/emacs/. |
| 2 |
|
| 3 |
|
| 4 |
h2. Features |
| 5 |
|
| 6 |
* Navigation |
| 7 |
Go from unit test to model to controller to functional test to view to spec etc. |
| 8 |
* Running tests and specs |
| 9 |
Run test or spec for the current model, controller, lib etc. |
| 10 |
* Console and webserver |
| 11 |
Run this console and webserver in a buffer. |
| 12 |
* Snippets |
| 13 |
Use snippets to speedup code writing and editing. |
| 14 |
|
| 15 |
Try @C-h b@ to find out what key bindings are available and see @M-x customize-group <RET> rails@ for all the knobs and switches. |
| 16 |
|
| 17 |
|
| 18 |
h2. Installation |
| 19 |
|
| 20 |
|
| 21 |
h3. Dependencies |
| 22 |
|
| 23 |
Before you install this package make sure the following dependencies met: |
| 24 |
|
| 25 |
* Ruby Mode |
| 26 |
* Inferior Ruby Mode |
| 27 |
|
| 28 |
These are installable via the "ELPA":http://tromey.com/elpa/ or using @apt-get install ruby-elisp@. Some Emacs distributions include them by default. |
| 29 |
|
| 30 |
|
| 31 |
h3. Rails-minor-mode |
| 32 |
|
| 33 |
Pull the latest version from github: |
| 34 |
|
| 35 |
<pre><code> git clone git://github.com/remvee/emacs-rails.git ~/.emacs.d/rails-minor-mode |
| 36 |
</code></pre> |
| 37 |
|
| 38 |
Hook it up in your @.emacs@ or @.emacs.d/init.el@ with something like: |
| 39 |
|
| 40 |
<pre><code> (add-to-list 'load-path (expand-file-name "~/.emacs.d/rails-minor-mode")) |
| 41 |
(require 'rails) |
| 42 |
</code></pre> |
| 43 |
|
| 44 |
You're ready to go. |
| 45 |
|
| 46 |
|
| 47 |
h3. Extra's |
| 48 |
|
| 49 |
You can find HAML and SASS support via ELPA. |
| 50 |
|
| 51 |
|
| 52 |
h4. RHTML-mode |
| 53 |
|
| 54 |
The latest from github: |
| 55 |
|
| 56 |
<pre><code> git clone git://github.com/eschulte/rhtml.git ~/.emacs.d/rhtml-minor-mode |
| 57 |
</code></pre> |
| 58 |
|
| 59 |
Hook it up: |
| 60 |
|
| 61 |
<pre><code> (add-to-list 'load-path (expand-file-name "~/.emacs.d/rhtml-minor-mode")) |
| 62 |
(require 'rhtml-mode) |
| 63 |
</code></pre> |
| 64 |
|
| 65 |
|
| 66 |
h4. YAML-mode |
| 67 |
|
| 68 |
Latest from subversion repo: |
| 69 |
|
| 70 |
<pre><code> svn co http://svn.clouder.jp/repos/public/yaml-mode/trunk/ ~/.emacs.d/yaml-mode |
| 71 |
</code></pre> |
| 72 |
|
| 73 |
Hook it up: |
| 74 |
|
| 75 |
<pre><code> (add-to-list 'load-path (expand-file-name "~/.emacs.d/yaml-mode")) |
| 76 |
(require 'yaml-mode) |
| 77 |
</code></pre> |
| 78 |
|
| 79 |
|
| 80 |
h2. Bugs |
| 81 |
|
| 82 |
Yes! Plenty! And most of them known, ignored and yearning for your attention! Please fork this repository and fix the stuff that bothers you. |
| 83 |
|
| 84 |
|
| 85 |
h2. Credits |
| 86 |
|
| 87 |
A big thanks to Dmitry Galinsky for starting this project. Since then a lot of people touched it too, checkout the commit logs. |