Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby on Rails Bundle for TextMate

This branch is 111 commits ahead, 128 commits behind drnic:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Commands
DragCommands
Macros
Preferences
Snippets
Support
Syntaxes
config
script
tasks
website
.gitignore
ABOUT
CHANGELOG
Capfile
LICENSE
README.md
Rakefile
TODO
info.plist

README.md

Rails TextMate Bundle

Description

Features I've added to the bundle include:

Shoulda Support

  • Full shoulda support WITHOUT having to swap your active bundle. This allows you to continue using the Rails bundle, but still all the advantages of my Shoulda bundle:
    • syntax highlighting,
    • ability to run tests and contexts from textmate
    • shoulda snippets and commands
    • ⌘⇧+T lists shoulda tests / contexts

Other Changes

  • ⌥+␣ (option + spacebar) shows methods for a class or instance. (Simulates autocomplete of more powerful IDEs)
  • ⌥+: aligns code (ie if you have a hash on multiple lines, you can easily align all the keys with the first key)
  • ⌥⇧+M opens a window of recent migrations with links to open the migration file
  • ⌥⇧+L lets you easily open or tail rails logs (development, test, production)
  • rest⇥ - snippets for rest named routes (you'll never need to pull out that rest cheatsheet again!)
  • ⌘⇧+T lists factory names (when file includes Factory Girl definitions)
  • Fac ⇥ allows searching of all factories definitions and inserts selected factory as a snippet (assumes your factories are in your test/factories/ dir)
  • Command to convert move :table, :column, :after => :another_column into the proper migration format with the column type
  • Lots of other rails snippets: Rails.root, asserts, scopes, etc.

Installation

  1. $ cd ~/Library/Application\ Support/TextMate/Bundles/
  2. $ git clone git://github.com/phuibonhoa/ruby-on-rails-tmbundle.git Rails.tmbundle
  3. $ osascript -e 'tell app "TextMate" to reload bundles'

If you'd like to install all my bundles, check out this script written by mkdynamic. It installs all bundles and backups any existing bundles with conflicting names. Thanks Mark!

My Other Textmate Bundles

My bundles work best when use in conjunction with my other bundles:

Credits

BookRenter.com Logo

Additions by Philippe Huibonhoa and funded by BookRenter.com.

Original bundle and it's contributors can be found here

Something went wrong with that request. Please try again.