SlideShare ist ein Scribd-Unternehmen logo
1 von 1
TextMate Cheat Sheet for Rails Hackers
                   ⌃ = control      ⌘ = command   ⌥ = option       ⇧ = shift

 File Navigation                                  Snippets                        ⌃⌥⌘S

  go to file                         ⌘T                                         Tab Trigger

  go to line                        ⌘L            class class_name                    class
  go to method                    ⇧⌘T             def method_name                       def
                                                  each { |element| ... }              each
  find in project                  ⇧⌘F
                                                  for element in collection          forin
  reveal in project               ⌃⌘R
                                                  if condition                if or ifelse
                                                  unless condition                 unless
 Editing                                          :key => "value"                          :
  code completion                 Escape          flash[:notice] = "..."               flash
  fold / unfold                      F1           logger.info "..."                    logi
                                                  assert_equal value, @o.attr            ae
  comment selection                 ⌘/
                                                  redirect_to options             rec[ai]
  indent selection           ⌘ [ and ⌘ ]
                                                  render :action => "action"             ra
  move selection             ⌃ ⌘ (arrow)
                                                  render :partial => "item"       rp[loc]
  edit selection                  ⌥⌘A
                                                  create_table "table" ...             mct
  column selection              ⌥ (drag)
                                                  table.column : , :                  mcc
  insert tag                     ⌃⇧<              <%= link_to options ...           lic[ai]
  wrap selection in tag    ⌃⇧W                    <% for item in @items ...        eforin
  close tag                 ⌥⌘.                   <%= form_tag options ...                ft
  wrap selection as link ⌃ ⇧ L                    has_many :objects ...                hm
  subversion menu          ⌃⇧A                    belongs_to :object ...                 bt
  new method            name ⇧ ↩                  validates_presence_of :attr ...      vpif
                                                                                  Hot Key
                                                  =>                                    ⌃L
 Commands                       ⌃⌥⌘C
                                                  params[:id]                           ⌃P
 run file as ruby                    ⌘R            session[:user]                        ⌃J
 start irb                        ⌃⇧I             <% %>                                ⌃X
                                                  <%= %>                                ⌃Z

Need Rails Training?                                                   Copyright © Mike Clark
http://pragmaticstudio.com                                                 Updated: 4/29/06

Weitere ähnliche Inhalte

Was ist angesagt?

Orlando BarCamp Why Javascript Doesn't Suck
Orlando BarCamp Why Javascript Doesn't SuckOrlando BarCamp Why Javascript Doesn't Suck
Orlando BarCamp Why Javascript Doesn't Suck
erockendude
 
Hacking Parse.y with ujihisa
Hacking Parse.y with ujihisaHacking Parse.y with ujihisa
Hacking Parse.y with ujihisa
ujihisa
 
Selection sort
Selection sortSelection sort
Selection sort
Raghu nath
 

Was ist angesagt? (20)

Orlando BarCamp Why Javascript Doesn't Suck
Orlando BarCamp Why Javascript Doesn't SuckOrlando BarCamp Why Javascript Doesn't Suck
Orlando BarCamp Why Javascript Doesn't Suck
 
What's New in Perl? v5.10 - v5.16
What's New in Perl?  v5.10 - v5.16What's New in Perl?  v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
 
Php Chapter 1 Training
Php Chapter 1 TrainingPhp Chapter 1 Training
Php Chapter 1 Training
 
Implicit classes - share the knowledge
Implicit classes  - share the knowledgeImplicit classes  - share the knowledge
Implicit classes - share the knowledge
 
Introduction in php
Introduction in phpIntroduction in php
Introduction in php
 
Hacking Parse.y with ujihisa
Hacking Parse.y with ujihisaHacking Parse.y with ujihisa
Hacking Parse.y with ujihisa
 
Introduction in php part 2
Introduction in php part 2Introduction in php part 2
Introduction in php part 2
 
Display system task
Display system taskDisplay system task
Display system task
 
Selection sort
Selection sortSelection sort
Selection sort
 
Vcs8
Vcs8Vcs8
Vcs8
 
From android/java to swift (3)
From android/java to swift (3)From android/java to swift (3)
From android/java to swift (3)
 
Swift Introduction
Swift IntroductionSwift Introduction
Swift Introduction
 
Things to avoid in JavaScript
Things to avoid in JavaScriptThings to avoid in JavaScript
Things to avoid in JavaScript
 
Sigma type
Sigma typeSigma type
Sigma type
 
Web 4 | Core JavaScript
Web 4 | Core JavaScriptWeb 4 | Core JavaScript
Web 4 | Core JavaScript
 
Code Generation in PHP - PHPConf 2015
Code Generation in PHP - PHPConf 2015Code Generation in PHP - PHPConf 2015
Code Generation in PHP - PHPConf 2015
 
iOS Talks 1 - CodeCamp Osijek - Swift u praksi
iOS Talks 1 - CodeCamp Osijek - Swift u praksiiOS Talks 1 - CodeCamp Osijek - Swift u praksi
iOS Talks 1 - CodeCamp Osijek - Swift u praksi
 
Learning Perl 6
Learning Perl 6 Learning Perl 6
Learning Perl 6
 
Rakudo
RakudoRakudo
Rakudo
 
De 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWKDe 0 a 100 con Bash Shell Scripting y AWK
De 0 a 100 con Bash Shell Scripting y AWK
 

Andere mochten auch

Rails 3 generators
Rails 3 generatorsRails 3 generators
Rails 3 generators
joshsmoore
 
Railsguide
RailsguideRailsguide
Railsguide
lanlau
 
Introducing Command Line Applications with Ruby
Introducing Command Line Applications with RubyIntroducing Command Line Applications with Ruby
Introducing Command Line Applications with Ruby
Nikhil Mungel
 

Andere mochten auch (11)

Ruby on Rails Kickstart 103 & 104
Ruby on Rails Kickstart 103 & 104Ruby on Rails Kickstart 103 & 104
Ruby on Rails Kickstart 103 & 104
 
Rails01
Rails01Rails01
Rails01
 
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
 
Rails 3 generators
Rails 3 generatorsRails 3 generators
Rails 3 generators
 
Ruby on Rails 101
Ruby on Rails 101Ruby on Rails 101
Ruby on Rails 101
 
Rest and Rails
Rest and RailsRest and Rails
Rest and Rails
 
Railsguide
RailsguideRailsguide
Railsguide
 
Rails 3 Beginner to Builder 2011 Week 3
Rails 3 Beginner to Builder 2011 Week 3Rails 3 Beginner to Builder 2011 Week 3
Rails 3 Beginner to Builder 2011 Week 3
 
Introducing Command Line Applications with Ruby
Introducing Command Line Applications with RubyIntroducing Command Line Applications with Ruby
Introducing Command Line Applications with Ruby
 
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory CourseRuby on Rails 101 - Presentation Slides for a Five Day Introductory Course
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
 
Ruby on Rails for beginners
Ruby on Rails for beginnersRuby on Rails for beginners
Ruby on Rails for beginners
 

Ähnlich wie Rails Text Mate Cheats

Introduction to Monads in Scala (1)
Introduction to Monads in Scala (1)Introduction to Monads in Scala (1)
Introduction to Monads in Scala (1)
stasimus
 
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivarsDecent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
Leonardo Soto
 
Phoenix for laravel developers
Phoenix for laravel developersPhoenix for laravel developers
Phoenix for laravel developers
Luiz Messias
 
Object Orientation vs Functional Programming in Python
Object Orientation vs Functional Programming in PythonObject Orientation vs Functional Programming in Python
Object Orientation vs Functional Programming in Python
Tendayi Mawushe
 

Ähnlich wie Rails Text Mate Cheats (20)

Introduction to Monads in Scala (1)
Introduction to Monads in Scala (1)Introduction to Monads in Scala (1)
Introduction to Monads in Scala (1)
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivarsDecent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
 
Functional ruby
Functional rubyFunctional ruby
Functional ruby
 
Vim Hacks
Vim HacksVim Hacks
Vim Hacks
 
Vim Hacks
Vim HacksVim Hacks
Vim Hacks
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Phoenix for laravel developers
Phoenix for laravel developersPhoenix for laravel developers
Phoenix for laravel developers
 
Introduction to Client-Side Javascript
Introduction to Client-Side JavascriptIntroduction to Client-Side Javascript
Introduction to Client-Side Javascript
 
Devel::hdb debugger talk
Devel::hdb debugger talkDevel::hdb debugger talk
Devel::hdb debugger talk
 
CLI, the other SAPI phpnw11
CLI, the other SAPI phpnw11CLI, the other SAPI phpnw11
CLI, the other SAPI phpnw11
 
Making JavaScript Libraries More Approachable
Making JavaScript Libraries More ApproachableMaking JavaScript Libraries More Approachable
Making JavaScript Libraries More Approachable
 
Python advance
Python advancePython advance
Python advance
 
Beware sharp tools
Beware sharp toolsBeware sharp tools
Beware sharp tools
 
Pydiomatic
PydiomaticPydiomatic
Pydiomatic
 
Python idiomatico
Python idiomaticoPython idiomatico
Python idiomatico
 
Functional programming ii
Functional programming iiFunctional programming ii
Functional programming ii
 
Cli the other SAPI confoo11
Cli the other SAPI confoo11Cli the other SAPI confoo11
Cli the other SAPI confoo11
 
Object Orientation vs Functional Programming in Python
Object Orientation vs Functional Programming in PythonObject Orientation vs Functional Programming in Python
Object Orientation vs Functional Programming in Python
 
Practical cats
Practical catsPractical cats
Practical cats
 

Rails Text Mate Cheats

  • 1. TextMate Cheat Sheet for Rails Hackers ⌃ = control ⌘ = command ⌥ = option ⇧ = shift File Navigation Snippets ⌃⌥⌘S go to file ⌘T Tab Trigger go to line ⌘L class class_name class go to method ⇧⌘T def method_name def each { |element| ... } each find in project ⇧⌘F for element in collection forin reveal in project ⌃⌘R if condition if or ifelse unless condition unless Editing :key => "value" : code completion Escape flash[:notice] = "..." flash fold / unfold F1 logger.info "..." logi assert_equal value, @o.attr ae comment selection ⌘/ redirect_to options rec[ai] indent selection ⌘ [ and ⌘ ] render :action => "action" ra move selection ⌃ ⌘ (arrow) render :partial => "item" rp[loc] edit selection ⌥⌘A create_table "table" ... mct column selection ⌥ (drag) table.column : , : mcc insert tag ⌃⇧< <%= link_to options ... lic[ai] wrap selection in tag ⌃⇧W <% for item in @items ... eforin close tag ⌥⌘. <%= form_tag options ... ft wrap selection as link ⌃ ⇧ L has_many :objects ... hm subversion menu ⌃⇧A belongs_to :object ... bt new method name ⇧ ↩ validates_presence_of :attr ... vpif Hot Key => ⌃L Commands ⌃⌥⌘C params[:id] ⌃P run file as ruby ⌘R session[:user] ⌃J start irb ⌃⇧I <% %> ⌃X <%= %> ⌃Z Need Rails Training? Copyright © Mike Clark http://pragmaticstudio.com Updated: 4/29/06