Minor mode for editing RubyOnRails code in Emacs
Emacs Lisp
Pull request Compare This branch is 233 commits ahead of tomtt:master.
Permalink
Failed to load latest commit information.
.gitignore Ignore *.elc Feb 29, 2012
LICENSE Added GPL 2 license as LICENCE and dropped unused History and Jul 30, 2012
README.textile cleanup setup of auto-mode-alist and add Capfile and *.prawn Mar 4, 2010
behave-rails.el Adding some functionality to rails-lib, experimenting with elisp BDD … May 14, 2008
inflections.el [#13306] Defer construction of the inflections list at evaluation Sep 19, 2008
rails-bytecompile.el Silence 'cl compile warnings Feb 29, 2012
rails-cmd-proxy.el improve running specs for rails 3 and capybara Sep 18, 2011
rails-controller-layout.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
rails-controller-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created Apr 3, 2007
rails-core.el Fix matching rails version from Gemfile.lock. Jan 18, 2013
rails-features.el Remove snippet.el integration Feb 29, 2012
rails-find.el Modified emacs-rails for RSpec support Feb 27, 2009
rails-fixture-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created Apr 3, 2007
rails-functional-test-minor-mode.el rails.el (auto-mode-alist): added Rakefile to auto-mode-alist Apr 5, 2007
rails-helper-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created Apr 3, 2007
rails-integration-test-minor-mode.el add rails-integration-test-minor-mode, and fix form_for snippet. Jan 13, 2009
rails-layout-minor-mode.el updated copyright Mar 24, 2007
rails-lib-layout.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
rails-lib-minor-mode.el Modified emacs-rails for RSpec support Feb 27, 2009
rails-lib.el Remove abbrev-mode integration Feb 29, 2012
rails-log.el Ability to specify number of lines initially shown when opening log file Apr 29, 2008
rails-mailer-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created Apr 3, 2007
rails-migration-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created Apr 3, 2007
rails-model-layout.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
rails-model-minor-mode.el Modified emacs-rails for RSpec support Feb 27, 2009
rails-navigation.el Navigation to templates and associated models now recognizes ruby 1.9… Aug 1, 2012
rails-plugin-minor-mode.el updated copyright Mar 24, 2007
rails-project.el * rails-spec.el: base support for rspec. Function Aug 24, 2007
rails-rake.el Use "bundle exec" when available for rspec and starting the webserver. Sep 13, 2012
rails-refactoring.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
rails-rspec-controller-minor-mode.el Merge commit 'remvee/master' into work Mar 3, 2009
rails-rspec-fixture-minor-mode.el Modified emacs-rails for RSpec support Feb 27, 2009
rails-rspec-lib-minor-mode.el Merge commit 'remvee/master' into work Mar 3, 2009
rails-rspec-minor-mode.el Modified emacs-rails for RSpec support Feb 27, 2009
rails-rspec-model-minor-mode.el Merge commit 'remvee/master' into work Mar 3, 2009
rails-ruby.el Properly set `inf-ruby-buffer' variable on rails >= 3. Jun 11, 2015
rails-scripts.el Allow script to be ran when visiting a file in the project; current w… May 16, 2013
rails-shoulda.el improved rails-test:run-current-method for shoulda Jul 28, 2011
rails-spec.el Use "bundle exec" when available for rspec and starting the webserver. Sep 13, 2012
rails-speedbar-feature.el F1 is not my help key! Oct 11, 2012
rails-test.el Make running current test easier Jun 11, 2015
rails-ui.el Typo in `rails-minor-mode-local-prefix-key' customization documentation. May 15, 2013
rails-unit-test-minor-mode.el rails.el (auto-mode-alist): added Rakefile to auto-mode-alist Apr 5, 2007
rails-view-minor-mode.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
rails-ws.el Run default webserver with correct invocation. May 16, 2013
rails.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013

README.textile

It is minor mode for editing Ruby On Rails code with Emacs.

Features

  • Navigation
    Go from unit test to model to controller to functional test to view to spec etc.
  • Running tests and specs
    Run test or spec for the current model, controller, lib etc.
  • Console and webserver
    Run this console and webserver in a buffer.
  • Snippets
    Use snippets to speedup code writing and editing.

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.

Installation

Dependencies

Before you install this package make sure the following dependencies met:

  • Ruby Mode
  • Inferior Ruby Mode

These are installable via the ELPA or using apt-get install ruby-elisp. Some Emacs distributions include them by default.

Rails-minor-mode

Pull the latest version from github:

  git clone git://github.com/remvee/emacs-rails.git ~/.emacs.d/rails-minor-mode

Hook it up in your .emacs or .emacs.d/init.el with something like:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/rails-minor-mode"))
  (require 'rails)

You’re ready to go.

Extra’s

You can find HAML and SASS support via ELPA.

RHTML-mode

The latest from github:

  git clone git://github.com/eschulte/rhtml.git ~/.emacs.d/rhtml-minor-mode

Hook it up:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/rhtml-minor-mode"))
  (require 'rhtml-mode)

YAML-mode

Latest from subversion repo:

  svn co http://svn.clouder.jp/repos/public/yaml-mode/trunk/ ~/.emacs.d/yaml-mode

Hook it up:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/yaml-mode"))
  (require 'yaml-mode)

Bugs

Yes! Plenty! And most of them known, ignored and yearning for your attention! Please fork this repository and fix the stuff that bothers you.

Credits

A big thanks to Dmitry Galinsky for starting this project. Since then a lot of people touched it too, checkout the commit logs.