Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby on Rails Bundle for TextMate

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Commands
Octocat-spinner-32 DragCommands
Octocat-spinner-32 Macros
Octocat-spinner-32 Preferences
Octocat-spinner-32 Snippets
Octocat-spinner-32 Support
Octocat-spinner-32 Syntaxes
Octocat-spinner-32 config
Octocat-spinner-32 script
Octocat-spinner-32 tasks
Octocat-spinner-32 website
Octocat-spinner-32 .gitignore
Octocat-spinner-32 ABOUT
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 Capfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 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.