2.The world won't care about your self-esteem. The world will expect you to accomplish something BEFORE you feel good about yourself.
3.You will NOT make 40 thousand dollars a year right out of high school. You won't be a vice president with car phone, until you earn both
4.If you think your teacher is tough, wait till you get a boss. He doesn't have tenure
5.Flipping burgers is not beneath your dignity. Your grandparents had a different word for burger flipping they called it Opportunity
6.If you mess up,it's not your parents' fault, so don't whine about your mistakes, learn from them.
7.Before you were born, your parents weren't as boring as they are now. They got that way from paying your bills, cleaning your clothes and listening to you talk about how cool you are. So before you save the rain forest from the parasites of your parent's generation, try delousing the closet in your own room.
8.Your school may have done away with winners and losers, but life has not. In some schools they have abolished failing grades and they'll give you as many times as you want to get the right answer. This doesn't bear the slightest resemblance to ANYTHING in real life.
9.Life is not divided into semesters. You don't get summers off and very few employers are interested in helping you find yourself. Do that on your own time.
10.Be nice to nerds. Chances are you'll end up working for one.
* 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%
------------------------------------------
個人的に役立っているのは。
*snippet によるコード補完。
*script/generate and script/destroy (controller, model, scaffold, migration) の統合。
*script/console and script/breakpointer の統合。
* Ctrl+C / Ctrl+C / r で rake 起動。
* F1 キーで リファレンスの参照。
* Controller ファイル内で Ctrl+c / ↓ で、 view/helper/functional test へジャンプ。
java.net does not provide CVS access without first signing up for a java.net user account. Once you have done this, you can get the source by doing the following: cvs -d :pserver:[username]@cvs.dev.java.net:/cvs login cvs -d :pserver:[username]@cvs.dev.java.net:/cvs checkout ognl
----------------------------------------- Sunday: Japan’s asteroid probe Hayabusa returns after spending seven years in space, and is expected to come back to Earth with presents: world’s first samples of an asteroid’s surface. -----------------------------------------
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/
You can also use SVN
cd $HOME/.emacs.d/ svn co svn://rubyforge/var/svn/emacs-rails/trunk emacs-rails
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.
------------------------- README this file inf-ruby.el program to run ruby under emacs ruby-mode.el ruby mode for emacs rubydb2x.el ruby debugger support for emacs 19.2x or before rubydb3x.el ruby debugger support for emacs 19.3x or later ruby-electric.el emacs minor mode providing electric commands
Check out http://rubyforge.org/projects/ruby-debug/ also. -------------------------