dmexe / emacs-rails-reloaded Goto Github PK
View Code? Open in Web Editor NEWMinor mode for editing RubyOnRails code in Emacs
Home Page: http://rubyforge.org/projects/emacs-rails/
License: GNU General Public License v2.0
Minor mode for editing RubyOnRails code in Emacs
Home Page: http://rubyforge.org/projects/emacs-rails/
License: GNU General Public License v2.0
It is the minor mode for editing Ruby On Rails code with Emacs. This minor mode makes your work much easier and user friendly. == Requirements The emacs-rails-reloaded is requiring a 22.x or 23 (CVS) version of Emacs, and can’t be running on old versions (less 22.0). To install Emacs: * For UNIX: use your package manager (typically name of package emacs, emacs-cvs or emacs22) or compile it from source. * For OSX: use the "Aquameacs":http://aquamacs.org or nightly builds of "CVS version with Cocoa":http://atomized.org/wp-content/cocoa-emacs-nightly/ or install using macports (name of package: emacs or emacs-app) * For Windows: download and install "EmacsW32":http://ourcomments.org/Emacs/EmacsW32.html == Instalation Download last release from "github project page":http://github.com/dima-exe/emacs-rails-reloaded/downloads and unpack it to directory containing libraries of Emacs, by default it’s $HOME/.emacs.d/ After that add bellow code in your the .emacs file: (setq load-path (cons (expand-file-name "~/.emacs.d/rails-reloaded") load-path)) (require 'rails-autoload) Next bytecompile, press [M-x] and type rails/bytecompile. == 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 “RoR” 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 * Integration with script/generate, script/destroy and rake, press [C-c '] or [C-c ;] and type 'rake', 'gen', 'des' to display available tasks. * Navigation around rails files, press [C-c '] or [C-c ;] to display available files. [C-c up] to toggle (controller|mailer) <> view. [C-c t] to toggle test <> implementation. * Support test frameworks Test::Unit and RSpec, press [C-c C-c .] or [C-c C-c ,] to run current test. * Management of WEBrick/Mongrel/Thing * Per project configuration, you can setup the default port for server, the environment or etc. * Apidock.com integration, press [C-c '] or [C-c ;] and type who you wish find. * Textmate like snippets. == Links For bugs, patches and other requests: http://dima.lighthouseapp.com/projects/1882-emacs-rails Google group about rails development on Emacs: http://groups.google.com/group/emacs-on-rails
I use ruby installed via macports in /opt/local/bin/ruby. When I use emacs-rails-reloaded I get errors running the webserver etc becasue it can't find my gems and is using the standard installation of ruby on my mac instead. Any ideas on how I can fix this?
Initially when I tried bytecompile, it complained about inf-ruby. When I installed inf-ruby, now bytecompile gives the following warnings and selftest fails.
Leaving directory ~/' Compiling file /home/amitav/.emacs.d/rails-reloaded/core-ext.el at Sun Dec 16 04:29:38 2012 Entering directory
/home/amitav/.emacs.d/rails-reloaded/'
Compiling file /home/amitav/.emacs.d/rails-reloaded/files-ext.el at Sun Dec 16 04:29:38 2012
files-ext.el:25:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/inflections.el at Sun Dec 16 04:29:39 2012
inflections.el:30:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/list-ext.el at Sun Dec 16 04:29:39 2012
list-ext.el:25:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-anything.el at Sun Dec 16 04:29:39 2012
rails-anything.el:25:1:Warning: cl package required at runtime
rails-anything.el:72:1:Warning: (lambda (i) ...) quoted with ' rather than
with #'
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-autoload.el at Sun Dec 16 04:29:39 2012
rails-autoload.el:28:1:Warning: cl package required at runtime
In end of data:
rails-autoload.el:123:1:Warning: the function `yas/load-directory' is not
known to be defined.
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-bundles.el at Sun Dec 16 04:29:40 2012
rails-bundles.el:25:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-compile.el at Sun Dec 16 04:29:40 2012
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-lib.el at Sun Dec 16 04:29:40 2012
rails-lib.el:26:1:Warning: cl package required at runtime
In rails/button-action:
rails-lib.el:213:22:Warning: `goto-line' used from Lisp code
That command is designed for interactive use only
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-project.el at Sun Dec 16 04:29:40 2012
rails-project.el:25:1:Warning: cl package required at runtime
rails-project.el:36:1:Warning: (lambda (i) ...) quoted with ' rather than with
#'
rails-project.el:59:1:Warning: (lambda (buf) ...) quoted with ' rather than
with #'
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-proxy.el at Sun Dec 16 04:29:40 2012
rails-proxy.el:25:1:Warning: cl package required at runtime
In rails/proxy/shell-command:
rails-proxy.el:65:17:Warning: start-process-shell-command called with 4
arguments, but accepts only 3
In rails/proxy/up-tinnel-if-need:
rails-proxy.el:95:10:Warning: start-process-shell-command called with 4
arguments, but accepts only 3
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-reloaded.el at Sun Dec 16 04:29:41 2012
rails-reloaded.el:40:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-resources.el at Sun Dec 16 04:29:41 2012
rails-resources.el:25:1:Warning: cl package required at runtime
Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-ruby.el at Sun Dec 16 04:29:42 2012
In rails/ruby/run-in-buffer:
rails-ruby.el:65:11:Warning: assignment to free variable
inferior-ruby-first-prompt-pattern' rails-ruby.el:66:11:Warning: assignment to free variable
inferior-ruby-prompt-pattern'
rails-ruby.el:67:11:Warning: assignment to free variable `ruby-buffer'
In end of data:
rails-ruby.el:77:22:Warning: the function inferior-ruby-mode' is not known to be defined. Compiling file /home/amitav/.emacs.d/rails-reloaded/rails-runner.el at Sun Dec 16 04:29:42 2012 Compiling file /home/amitav/.emacs.d/rails-reloaded/string-ext.el at Sun Dec 16 04:29:42 2012 string-ext.el:25:1:Warning: cl package required at runtime Leaving directory
/home/amitav/.emacs.d/rails-reloaded/'
Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-apidock-bundle.el at Sun Dec 16 04:29:42 2012
Entering directory /home/amitav/.emacs.d/rails-reloaded/bundles/' Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-basic-bundle.el at Sun Dec 16 04:29:42 2012 Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-database-bundle.el at Sun Dec 16 04:29:42 2012 rails-database-bundle.el:1:1:Warning: cl package required at runtime Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-generator-bundle.el at Sun Dec 16 04:29:43 2012 rails-generator-bundle.el:1:1:Warning: cl package required at runtime Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-rake-bundle.el at Sun Dec 16 04:29:43 2012 rails-rake-bundle.el:1:1:Warning: cl package required at runtime Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-rspec-bundle.el at Sun Dec 16 04:29:43 2012 Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-test-unit-bundle.el at Sun Dec 16 04:29:43 2012 Compiling file /home/amitav/.emacs.d/rails-reloaded/bundles/rails-webserver-bundle.el at Sun Dec 16 04:29:43 2012 Leaving directory
/home/amitav/.emacs.d/rails-reloaded/bundles/'
Compiling file /home/amitav/.emacs.d/rails-reloaded/vendor/anything.el at Sun Dec 16 04:29:44 2012
Entering directory `/home/amitav/.emacs.d/rails-reloaded/vendor/'
anything.el:767:1:Warning: cl package required at runtime
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.