Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby on Rails Bundle for TextMate
Ruby JavaScript CSS
Pull request Compare This branch is 111 commits ahead, 128 commits behind drnic:master.
Failed to load latest commit information.
Commands Mavericks compatibility
DragCommands Simple draggable for ruby files into ruby files: creates a require st…
Macros Merged in some changes from the parent rails bundle. Added a list fac…
Preferences Updated rails bundle to show factory names in symbol list
Snippets Updated validates snippet to use new hash syntax
Support Updated factories for compatibility with newest Factory Girl
Syntaxes Updated factories for compatibility with newest Factory Girl
config This is a merge from the git repository hosted by Dr. Nic
script oops, wrong tmbundle name used for download file name
tasks This is a merge from the git repository hosted by Dr. Nic
website oops, wrong tmbundle name used for download file name
.gitignore This is a merge from the git repository hosted by Dr. Nic
ABOUT added my name to contributors!
CHANGELOG fixed CHANGELOG spelling error [CharlieSu]
Capfile This is a merge from the git repository hosted by Dr. Nic
LICENSE Renaming bundle to "Ruby on Rails" to conform to bundle style guide.
README.md Added ability for list_methods to autocomplete a partially formed met…
Rakefile bumped website to 2.3.0
TODO This is a merge from the git repository hosted by Dr. Nic
info.plist Added Facg snippet for searching/listing factories using new FactoryG…

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.