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

Octocat-spinner-32 Commands Mavericks compatibility October 23, 2013
Octocat-spinner-32 DragCommands Simple draggable for ruby files into ruby files: creates a require st… June 19, 2008
Octocat-spinner-32 Macros Merged in some changes from the parent rails bundle. Added a list fac… October 25, 2010
Octocat-spinner-32 Preferences Updated rails bundle to show factory names in symbol list May 12, 2010
Octocat-spinner-32 Snippets Updated validates snippet to use new hash syntax January 27, 2014
Octocat-spinner-32 Support Updated factories for compatibility with newest Factory Girl January 27, 2014
Octocat-spinner-32 Syntaxes Updated factories for compatibility with newest Factory Girl January 27, 2014
Octocat-spinner-32 config This is a merge from the git repository hosted by Dr. Nic March 08, 2008
Octocat-spinner-32 script oops, wrong tmbundle name used for download file name April 03, 2009
Octocat-spinner-32 tasks This is a merge from the git repository hosted by Dr. Nic March 08, 2008
Octocat-spinner-32 website oops, wrong tmbundle name used for download file name April 03, 2009
Octocat-spinner-32 .gitignore This is a merge from the git repository hosted by Dr. Nic March 08, 2008
Octocat-spinner-32 ABOUT added my name to contributors! January 07, 2010
Octocat-spinner-32 CHANGELOG fixed CHANGELOG spelling error [CharlieSu] May 12, 2008
Octocat-spinner-32 Capfile This is a merge from the git repository hosted by Dr. Nic March 08, 2008
Octocat-spinner-32 LICENSE Renaming bundle to "Ruby on Rails" to conform to bundle style guide. August 28, 2007
Octocat-spinner-32 README.md Added ability for list_methods to autocomplete a partially formed met… March 12, 2011
Octocat-spinner-32 Rakefile bumped website to 2.3.0 March 19, 2009
Octocat-spinner-32 TODO This is a merge from the git repository hosted by Dr. Nic March 08, 2008
Octocat-spinner-32 info.plist Added Facg snippet for searching/listing factories using new FactoryG… June 21, 2012
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.