public
Fork of tomtt/emacs-rails
Description: Tomtt's version of the minor mode for editing RubyOnRails code in Emacs
Homepage: http://rubyforge.org/projects/emacs-rails/
Clone URL: git://github.com/remvee/emacs-rails.git
name age message
file .gitignore Tue May 13 23:16:45 -0700 2008 Added a .gitignore to the repos [Tom ten Thij]
file ChangeLog Tue Dec 09 01:24:28 -0800 2008 cleanup the modeline code [joodie]
file History Sun Mar 02 13:09:58 -0800 2008 Updated History git-svn-id: svn+ssh://rubyfor... [dimaexe]
file README.textile Mon Nov 30 00:45:16 -0800 2009 updated README [remvee]
file behave-rails.el Tue May 13 23:08:47 -0700 2008 Adding some functionality to rails-lib, experim... [Tom ten Thij]
file inflections.el Fri Sep 19 14:59:24 -0700 2008 [#13306] Defer construction of the inflections ... [vanicat]
file predictive-prog-mode.el Fri Apr 13 00:46:13 -0700 2007 README updated. git-svn-id: svn+ssh://rubyfor... [dimaexe]
file rails-bytecompile.el Fri Sep 19 15:52:16 -0700 2008 add current directory to load-path in rails-byt... [vanicat]
file rails-cmd-proxy.el Wed Feb 11 02:58:34 -0800 2009 Merge commit 'crazycode/master' [vanicat]
file rails-compat.el Tue Aug 14 09:16:58 -0700 2007 rails-compat.el (try-complete-abbrev): fixed ra... [dimaexe]
file rails-controller-layout.el Tue Jun 09 05:00:38 -0700 2009 fix rails-controller-layout:toggle-action-view ... [remvee]
file rails-controller-minor-mode.el Tue Apr 03 01:45:46 -0700 2007 rails-model-layout.el (rails-model-layout:keyma... [dimaexe]
file rails-core.el Tue Sep 29 06:23:37 -0700 2009 rails-core:model-file now also returns file nam... [remvee]
file rails-features.el Wed Aug 15 11:41:32 -0700 2007 rails-ruby.el (ruby-hs-minor-mode): created, su... [dimaexe]
file rails-find.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-fixture-minor-mode.el Tue Apr 03 01:45:46 -0700 2007 rails-model-layout.el (rails-model-layout:keyma... [dimaexe]
file rails-functional-test-minor-mode.el Thu Apr 05 10:44:57 -0700 2007 rails.el (auto-mode-alist): added Rakefile to a... [dimaexe]
file rails-helper-minor-mode.el Tue Apr 03 01:45:46 -0700 2007 rails-model-layout.el (rails-model-layout:keyma... [dimaexe]
file rails-integration-test-minor-mode.el Mon Jan 12 22:16:07 -0800 2009 add rails-integration-test-minor-mode, and fix ... [crazycode]
file rails-layout-minor-mode.el Sat Mar 24 15:34:38 -0700 2007 updated copyright added README git-svn-id: sv... [dimaexe]
file rails-lib-layout.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-lib-minor-mode.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-lib.el Fri Sep 26 04:16:52 -0700 2008 use sparse keymap we don't need full keymap as... [vanicat]
file rails-log.el Tue Apr 29 04:44:22 -0700 2008 Ability to specify number of lines initially sh... [Tom ten Thij]
file rails-mailer-minor-mode.el Tue Apr 03 01:45:46 -0700 2007 rails-model-layout.el (rails-model-layout:keyma... [dimaexe]
file rails-migration-minor-mode.el Tue Apr 03 01:45:46 -0700 2007 rails-model-layout.el (rails-model-layout:keyma... [dimaexe]
file rails-model-layout.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-model-minor-mode.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-navigation.el Wed Jun 10 02:21:09 -0700 2009 fix rails-nav:create-new-layout [remvee]
file rails-plugin-minor-mode.el Sat Mar 24 15:34:38 -0700 2007 updated copyright added README git-svn-id: sv... [dimaexe]
file rails-project.el Fri Aug 24 05:57:59 -0700 2007 * rails-spec.el: base support for rspec. Functi... [crazypit]
file rails-rake.el Wed Jun 17 15:55:19 -0700 2009 merge migration change from sishen/emacs-rails. [crazycode]
file rails-refactoring.el Tue Oct 13 08:34:41 -0700 2009 apply same automatic case-fold-search and case-... [remvee]
file rails-rspec-controller-minor-mode.el Tue Mar 03 00:51:19 -0800 2009 Merge commit 'remvee/master' into work Conflic... [crazycode]
file rails-rspec-fixture-minor-mode.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-rspec-lib-minor-mode.el Tue Mar 03 00:51:19 -0800 2009 Merge commit 'remvee/master' into work Conflic... [crazycode]
file rails-rspec-minor-mode.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-rspec-model-minor-mode.el Tue Mar 03 00:51:19 -0800 2009 Merge commit 'remvee/master' into work Conflic... [crazycode]
file rails-ruby.el Tue Oct 20 04:15:16 -0700 2009 fix for newer inf-ruby, second attempt [remvee]
file rails-scripts.el Tue Sep 29 06:22:25 -0700 2009 doc typo [remvee]
file rails-shoulda.el Thu May 15 09:47:48 -0700 2008 whitespace cleanup [rmm5t]
file rails-snippets-feature.el Wed Jun 17 15:44:13 -0700 2009 add new snippet. [crazycode]
file rails-spec.el Wed Dec 02 12:31:00 -0800 2009 allow rails-spec:run-last to rerun rails-spec:r... [remvee]
file rails-speedbar-feature.el Fri Feb 27 00:57:35 -0800 2009 Modified emacs-rails for RSpec support Signed-o... [remvee]
file rails-test.el Sat Jun 06 23:49:54 -0700 2009 Merge branch 'master' of git://github.com/remve... [eostrom]
file rails-ui.el Wed Dec 02 04:46:05 -0800 2009 replace rails-spec:run-this-file by rails-spec:... [remvee]
file rails-unit-test-minor-mode.el Thu Apr 05 10:44:57 -0700 2007 rails.el (auto-mode-alist): added Rakefile to a... [dimaexe]
file rails-view-minor-mode.el Wed Jul 01 00:24:54 -0700 2009 fix create-partial-from-selection and create-he... [remvee]
file rails-ws.el Tue Sep 01 06:15:12 -0700 2009 turn on rails-minor-mode for rails-ws buffer [remvee]
file rails.el Wed Dec 02 01:38:29 -0800 2009 make rails-core:buffer-type recognize layouts [remvee]
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

All of these are installable via the ELPA.

Ruby mode doesn’t know about typical Ruby DSL files so you’ll need to give Emacs a hand:

  (add-to-list 'auto-mode-alist '("\\.builder$" . ruby-mode))
  (add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode))
  (add-to-list 'auto-mode-alist '("Rakefile$" . ruby-mode))
  (add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode))

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.