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 [Joost Diepenmaat]
file History Sun Mar 02 13:09:58 -0800 2008 Updated History git-svn-id: svn+ssh://rubyfor... [dimaexe]
file README Thu Feb 26 08:56:07 -0800 2009 updated README to include correct listing [iamwilhelm]
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 ... [Rémi 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... [Rémi Vanicat]
file rails-cmd-proxy.el Wed Feb 11 02:58:34 -0800 2009 Merge commit 'crazycode/master' [Rémi 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 Fri Sep 25 05:41:03 -0700 2009 fix file switching from text/fixtures [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... [Rémi 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-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 Wed Feb 18 03:05:38 -0800 2009 "rails-scripts:console prompt for environment" ... [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 Sun Dec 23 01:41:41 -0800 2007 - rails-spec:run-this-spec M ChangeLog M ... [crazypit]
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 Tue Jul 21 09:58:09 -0700 2009 added rails-grep-project [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 Tue Jul 21 09:58:09 -0700 2009 added rails-grep-project [remvee]
README
It is minor mode for editing "Ruby On Rails":ror code with
"Emacs":emacs. This minor mode makes your work much easier and user
friendly


== Installation

You need download last release from RubyForge page
"http://rubyforge.org/projects/emacs-rails" and and unpack
it to directory containing libraries of Emacs, by default it's
$HOME/.emacs.d/

Using Git:

  cd $HOME/.emacs.d/
  git clone git://github.com/tomtt/emacs-rails.git  

Using SVN:

  cd $HOME/.emacs.d/
  svn co svn://rubyforge/var/svn/emacs-rails/trunk emacs-rails

Download and install required libraries

* "http://www.kazmier.com/computer/snippet.el":snippets
* "http://www.webweavertech.com/ovidiu/emacs/find-recursive.txt":frecursive

*Alert:* From 0.44 release emacs-rails will require the
 "inf-ruby":inf-ruby.

After that you must add this code in $HOME/.emacs

  (setq load-path (cons "~/.emacs.d/emacs-rails" load-path))
  (require 'rails)

For Windows users: you can use your help in CHM format (the default
*ri*).  This will require utility "KeyHH":keyhh. And add to a file
.emacs

  (setq rails-chm-file "full_path_to_rails_chm_manual")

After that you can run Emacs. Almost all available actions are in the
menu [Ruby On Rails]. The snippets are in the menu [Ruby On
Rails-Snippets], for the convenience, they are divided into
categories.

To change default setting, select [Ruby On Rails - Customize].

== First Acquaintance

Go to directory with your rails application and open any file in Emacs:

  cd $HOME/project/simple_rails_application
  emacs app/controllers/application.rb

There must be "RoR" sign in the list of active minor-modes in status
bar. Thi means, that emacs-rails is enabled and ready to help you in
your not so easy work.

Almoust all actions are in the "RubyOnRails" menu. You can check it
out and try some of them. Don't forget, that menu will help you only
first time. After that you better use hot keys for effective work, you
can find them in the brackets.

== Features

* TextMate-like snippets
* Display of colored log files
* Integration with script/generate and script/destroy (controller,
  model, scaffold, migration, etc)
* Integration with script/console and script/breakpointer
* Run rake %(key)C-c C-c r%
* Quick start svn-status in RAILS_ROOT %(key)f9%
* Documentation search using *ri* or *chm* file and Rails API
  reference in HTML %(key)f1%
* Quick access to the main configuration files
* Automatic TAGS generation in RAILS_ROOT directory

=== Management of WEBrick/Mongrel

* Your can select Webrick, Mongrel or Lighttpd
* Start/stop application server %(key)C-c C-c w s%
* Automatic browsing on current action (from view or controller)
  %(key)C-c C-c w a%

=== Navigation in RAILS_ROOT hierarchy

* Quick switch stylesheets, javascripts, migrations, layouts, helpers,
  controllers, models, observers, plugins
* In controller file: go to views, functional test, helper
  %(key)C-down%
* Switch between action/view %(key)Ñ-up%
* Go to file in current line (example: cursor at line [redirect_to
  controller => :home, :action => "show"], will be open action "show"
  in "home" controller) %(key)C-RET%
* Quick access to the main configuration files using menu

Other hot keys

* %(key)C-c C-c g g% rails-nav:goto-migrate
* %(key)C-c C-c g j% rails-nav:goto-javascripts
* %(key)C-c C-c g s% rails-nav:goto-stylesheets
* %(key)C-c C-c g l% rails-nav:goto-layouts
* %(key)C-c C-c g h% rails-nav:goto-helpers
* %(key)C-c C-c g c% rails-nav:goto-controllers
* %(key)C-c C-c g m% rails-nav:goto-models
* %(key)C-c C-c g o% rails-nav:goto-observers
* %(key)C-c C-c g p% rails-nav:goto-plugins

=== ERb refactoring

* Create partial from selection %(key)C-c p%
* Create helper from block  %(key)C-c b%

= Bugs

emacs-rails designed for current CVS version of Emacs (future Emacs22)
more probably some functions will not work in older version, or will
work with errors, so if it is possible, try to update. I will not tell
you why you should use CVS version, just take my word.

In some version from CVS some time ago, when you use emacs-rails,
sintax highlight in rhtml was not working, so just update to the
newest version from CVS.

If you find error, place it description in "BugTrack":bugtrack.

= Links

* "Emacs W32 (CVS version for Windows)":http://ourcomments.org/Emacs/EmacsW32.html
* "HowToUseEmacsWithRails":http://wiki.rubyonrails.org/rails/pages/HowToUseEmacsWithRails
* 
"http://scott.elitists.net/users/scott/posts/rails-on-emacs":http://scott.elitists.net/users/scott/posts/rails-on-emacs

* "http://www.emacswiki.org/cgi-bin/wiki/RubyMode":http://www.emacswiki.org/cgi-bin/wiki/RubyMode
* "Emacs screencast":screencast
* "Effective Emacs":effectiveemacs

[bugtrack]http://rubyforge.org/tracker/?atid=5809&group_id=1484&func=browse
[effectiveemacs]http://steve.yegge.googlepages.com/effective-emacs
[screencast]http://emacsonrails.drozdov.net/
[lisp]http://en.wikipedia.org/wiki/Lisp_programming_language
[frecursive]http://www.webweavertech.com/ovidiu/emacs/find-recursive.txt
[keyhh]http://www.keyworks.net/keyhh.htm
[snippets]http://www.kazmier.com/computer/snippet.el
[emacs]http://www.gnu.org/software/emacs/
[ror]http://rubyonrails.org
[emacs-rails]http://rubyforge.org/projects/emacs-rails
[inf-ruby]http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/misc/inf-ruby.el?view=co