├── Support
├── test
│ ├── fixtures
│ │ ├── db
│ │ │ └── .gitignore
│ │ ├── config
│ │ │ └── .gitignore
│ │ ├── vendor
│ │ │ └── plugins
│ │ │ │ └── haml
│ │ │ │ └── init.rb
│ │ └── app
│ │ │ └── controllers
│ │ │ └── posts_controller.rb
│ ├── app_fixtures
│ │ ├── db
│ │ │ └── .gitignore
│ │ ├── app
│ │ │ ├── views
│ │ │ │ ├── user
│ │ │ │ │ └── new.rhtml
│ │ │ │ ├── users
│ │ │ │ │ ├── create.html.erb
│ │ │ │ │ ├── new.html.erb
│ │ │ │ │ ├── existing_views.js.rjs
│ │ │ │ │ ├── existing_views.html.erb
│ │ │ │ │ ├── existing_views.wacky.erb
│ │ │ │ │ └── existing_views.xml.builder
│ │ │ │ ├── admin
│ │ │ │ │ └── base
│ │ │ │ │ │ └── action.html.erb
│ │ │ │ └── notifier
│ │ │ │ │ └── forgot_password.html.erb
│ │ │ ├── helpers
│ │ │ │ └── user_helper.rb
│ │ │ ├── models
│ │ │ │ ├── user.rb
│ │ │ │ ├── person.rb
│ │ │ │ └── notifier.rb
│ │ │ └── controllers
│ │ │ │ ├── user_controller.rb
│ │ │ │ ├── admin
│ │ │ │ └── base_controller.rb
│ │ │ │ ├── posts_controller.rb
│ │ │ │ └── users_controller.rb
│ │ ├── .gitignore
│ │ ├── config
│ │ │ ├── routes.rb
│ │ │ ├── database.yml
│ │ │ └── environments
│ │ │ │ └── development.rb
│ │ └── script
│ │ │ └── generate
│ ├── test_text_mate.rb
│ └── test_helper.rb
├── lib
│ ├── Builder.rb
│ ├── rvm
│ │ ├── nib
│ │ │ └── SetGemset.nib
│ │ │ │ └── keyedobjects.nib
│ │ ├── change_rvm
│ │ └── rvm_textmate
│ ├── rails
│ │ └── unobtrusive_logger.rb
│ └── rails_bundle_tools.rb
├── images
│ ├── svn.png
│ ├── home.gif
│ ├── rails.png
│ └── install.gif
└── bin
│ ├── go_to_alternate_file.rb
│ ├── go_to_file_on_current_line.rb
│ └── routes_auto_complete.rb
├── .gitignore
├── config
├── slicehost.yml.sample
├── website.yml.sample
└── deploy.rb
├── website
└── images
│ └── logo_bundle.png
├── Capfile
├── tasks
└── dist.rake
├── script
├── destroy
└── generate
├── Rakefile
├── Snippets
├── end.tmSnippet
├── after_save.tmSnippet
├── find(id).tmSnippet
├── after_create.tmSnippet
├── after_update.tmSnippet
├── before_save.tmSnippet
├── after_destroy.tmSnippet
├── before_create.tmSnippet
├── before_destroy.tmSnippet
├── before_update.tmSnippet
├── else (ERB).tmSnippet
├── if (ERB).tmSnippet
├── rails params.plist
├── rails session.plist
├── caches_action.tmSnippet
├── redirect_to :back.tmSnippet
├── scoped_by.tmSnippet
├── setup do__end.tmSnippet
├── cattr_accessor.tmSnippet
├── mattr_accessor.tmSnippet
├── logger_info.tmSnippet
├── logger_warn.tmSnippet
├── map(&%3Asym_proc).tmSnippet
├── logger_debug.tmSnippet
├── logger_error.tmSnippet
├── logger_fatal.tmSnippet
├── page_hide (%2Aids).tmSnippet
├── page_show (%2Aids).tmSnippet
├── rea.plist
├── render (file) (rf).plist
├── resources.tmSnippet
├── xhr get.tmSnippet
├── assert_rjs.tmSnippet
├── page_toggle (%2Aids).tmSnippet
├── rec.plist
├── render (nothing) (rn).plist
├── RAILS_DEFAULT_LOGGER.debug (rdb).plist
├── alias_attribute.tmSnippet
├── get.tmSnippet
├── render (action)... (ra).plist
├── render (layout) (rl).plist
├── render (text) (rt).plist
├── render (update).tmSnippet
├── test do__end.tmSnippet
├── xhr delete.tmSnippet
├── xhr post.tmSnippet
├── default_scope.tmSnippet
├── map_named_route.tmSnippet
├── rails flash.plist
├── respond_to.tmSnippet
├── format (respond_with).tmSnippet
├── get :on => :member.tmSnippet
├── render (inline) (ri).plist
├── Test Assert Response (are).plist
├── find(%3Aall).tmSnippet
├── reai.plist
├── redirect_to (path).tmSnippet
├── render (partial) (rp).plist
├── xhr put.tmSnippet
├── find(%3Afirst).tmSnippet
├── find(%3Alast).tmSnippet
├── map_resource.tmSnippet
├── redirect_to (path plural).tmSnippet
├── Test Assert Redirected To (art).plist
├── assert_difference.tmSnippet
├── map_resources.tmSnippet
├── t_date (tcda).tmSnippet
├── t_text (tct).tmSnippet
├── t_time (tcti).tmSnippet
├── content_for.tmSnippet
├── has_many (hm).plist
├── scope.tmSnippet
├── t_float (tcf).tmSnippet
├── t_rename (tre).tmSnippet
├── t_string (tcs).tmSnippet
├── Create date column.tmSnippet
├── Create text column.tmSnippet
├── Create time column.tmSnippet
├── Migration Create Column (mcc).plist
├── assert_no_difference.tmSnippet
├── assert_redirected_to (path plural).tmSnippet
├── reca.plist
├── render (nothing,status) (rns).plist
├── t_boolean (tcb).tmSnippet
├── t_integer (tci).tmSnippet
├── t_timestamps (tctss).tmSnippet
├── validates_associated (va).plist
├── Create float column.tmSnippet
├── Create string column.tmSnippet
├── assert_redirected_to (path).tmSnippet
├── gem.tmSnippet
├── render (text,status) (rts).plist
├── respond_with.tmSnippet
├── t_datetime (tcdt).tmSnippet
├── t_timestamp (tcts).tmSnippet
├── Create boolean column.tmSnippet
├── Create integer column.tmSnippet
├── Create timestamps columns.tmSnippet
├── Table column(s) rename.tmSnippet
├── assert(var = assigns(%3Avar)).tmSnippet
├── assert_select.tmSnippet
├── page_replace (id, partial).tmSnippet
├── page_visual_effect (effect, id).tmSnippet
├── render (action,layout) (ral).plist
├── render (inline,type) (rit).plist
├── scope lambda.tmSnippet
├── t_change (tch).tmSnippet
├── Create datetime column.tmSnippet
├── Create timestamp column.tmSnippet
├── map_with_options.tmSnippet
├── render (text,layout) (rtl).plist
├── gem :git.tmSnippet
├── has_one (ho).plist
├── map_catch_all.tmSnippet
├── render (file,use_full_path) (rfu).plist
├── render (partial,object) (rpo).plist
├── render (partial,status) (rps).plist
├── Migration Create Column Continue (mccc).plist
├── Table column(s) change.tmSnippet
├── page_replace_html (id, partial).tmSnippet
├── recai.plist
├── redirect_to (nested path).tmSnippet
├── belongs_to (bt).plist
├── redirect_to (nested path plural).tmSnippet
├── render (text,layout=%3Etrue) (rtlt).plist
├── find_each.tmSnippet
├── form_for checkbox.tmSnippet
├── form_for text_area.tmSnippet
├── lia.plist
├── match.tmSnippet
├── render (partial,collection) (rpc).plist
├── t_binary (tcbi).tmSnippet
├── validates_presence_of (vp).plist
├── assert_redirected_to (nested path plural).tmSnippet
├── form_for check_box.tmSnippet
├── form_for file_field.tmSnippet
├── form_for text_area 2.tmSnippet
├── form_for text_field.tmSnippet
├── layout.tmSnippet
├── render (partial,locals) (rpl).plist
├── Create binary column.tmSnippet
├── form_for file_field 2.tmSnippet
├── form_for hidden_field.tmSnippet
├── form_for text_field 2.tmSnippet
├── has_many (through).tmSnippet
├── lic.plist
├── render (inline,locals) (ril).plist
├── validates_numericality_of.tmSnippet
├── after_validation.tmSnippet
├── assert_redirected_to (nested path).tmSnippet
├── before_filter.tmSnippet
├── before_validation.tmSnippet
├── form_for hidden_field 2.tmSnippet
├── form_for password_field.tmSnippet
├── form_for radio_box.tmSnippet
├── has_and_belongs_to_many (habtm).plist
├── link_to model.tmSnippet
├── page_insert_html (position, id, partial).tmSnippet
├── t_lock_version (tcl).tmSnippet
├── validates_uniqueness_of (vu).plist
├── form_for password_field 2.tmSnippet
├── form_for radio_box 2.tmSnippet
├── member routes.tmSnippet
├── Create functional test class.tmSnippet
├── Create lock_version column.tmSnippet
├── liai.plist
├── link_to (path plural).tmSnippet
├── stylesheet_link_tag.tmSnippet
├── t_decimal (tcd).tmSnippet
├── validates_associated if (vaif).plist
├── form_for submit.tmSnippet
├── link_to_function.tmSnippet
├── resources collection.tmSnippet
├── scope with extension.tmSnippet
├── validates_confirmation_of (vc).plist
├── validates_length_of (vl).plist
├── %3C%= Fixtures_identify(%3Asymbol) %%3E.tmSnippet
├── Create decimal column.tmSnippet
├── form_for submit 2.tmSnippet
├── form_for.tmSnippet
├── javascript_include_tag.tmSnippet
├── link_to (path).tmSnippet
├── validates_acceptance_of.tmSnippet
├── validates_format_of.tmSnippet
├── form_for label 2.tmSnippet
├── form_for label.tmSnippet
├── has_many :dependent => :destroy.tmSnippet
├── image_tag.tmSnippet
├── t_references (tcr).tmSnippet
├── lica.plist
├── Create references column.tmSnippet
├── fields_for.tmSnippet
├── find_in_batches.tmSnippet
├── Migration Drop Create Table (mdct).plist
├── for loop erb.tmSnippet
├── validates_presence_of if (vpif) 2.plist
├── accepts_nested_attributes_for.tmSnippet
├── f_fields_for (nff).tmSnippet
├── validates_exclusion_of (ve).plist
├── form_for fields_for.tmSnippet
├── validates_numericality_of if.tmSnippet
├── licai.plist
├── validates_inclusion_of.tmSnippet
├── validates_uniqueness_of if (vuif).plist
├── Migration Remove and Add Column (mrac).plist
├── link_to (nested path plural).tmSnippet
├── link_to (nested path).tmSnippet
├── def get request.tmSnippet
├── validates_confirmation_of if (vcif).plist
├── validates_length_of if.tmSnippet
├── validates_acceptance_of if.tmSnippet
├── validates_format_of if.tmSnippet
├── 180 rails form_tag.plist
├── def post request.tmSnippet
├── Create controller class.tmSnippet
├── validates_exclusion_of if (veif).plist
├── validates_inclusion_of if.tmSnippet
├── verify (verify).plist
├── returning do %7Cvariable%7C %E2%80%A6 end.tmSnippet
├── verify - redirect (verify).plist
├── submit_tag.tmSnippet
├── form_for with errors.tmSnippet
└── image_submit_tag.tmSnippet
├── Preferences
└── Symbol List: Table Names.tmPreferences
├── Syntaxes
└── RJS.tmLanguage
├── Commands
├── Set RVM.tmCommand
├── Show DB Schema.tmCommand
├── Rake Migrate.plist
├── DB Schema Dump.plist
├── Redo Last Migration.tmCommand
├── DB Schema Import.plist
├── Go To View.plist
├── Load Fixtures.tmCommand
├── Clone Development DB to Test DB.tmCommand
├── View demo help.tmCommand
├── Load Fixtures (Test DB).tmCommand
├── Test All.tmCommand
├── Go To File on This Line.plist
├── Test Recent.tmCommand
├── Test Units.tmCommand
├── Test Plugins.tmCommand
├── Generate.plist
├── Go To Unit Test.plist
├── Test Functionals.tmCommand
├── Test Integration.tmCommand
├── Test Uncommitted.tmCommand
├── Generate Quick Migration.tmCommand
├── Go To Javascript.plist
├── Go To Stylesheet.plist
├── Go to Fixture.tmCommand
├── Go To Functional Test.plist
├── Go To File.plist
├── Jump to Method Definition.tmCommand
├── Autocomplete Foreign Key Fixture Reference (habtm).tmCommand
├── Go To Helper.plist
└── List columns of a model.tmCommand
├── README.md
└── ABOUT
/Support/test/fixtures/db/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/db/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/fixtures/config/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/user/new.rhtml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/fixtures/vendor/plugins/haml/init.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | config/*.yml
2 | website/dist
3 | .DS_Store
4 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/.gitignore:
--------------------------------------------------------------------------------
1 | log
2 | db/*.sqlite3
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/create.html.erb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/new.html.erb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/admin/base/action.html.erb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/helpers/user_helper.rb:
--------------------------------------------------------------------------------
1 | module UserHelper
2 | end
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/existing_views.js.rjs:
--------------------------------------------------------------------------------
1 | existing_views
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/models/user.rb:
--------------------------------------------------------------------------------
1 | class User < ActiveRecord::Base
2 | end
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/existing_views.html.erb:
--------------------------------------------------------------------------------
1 | existing_views
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/existing_views.wacky.erb:
--------------------------------------------------------------------------------
1 | existing_views
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/users/existing_views.xml.builder:
--------------------------------------------------------------------------------
1 | existing_views
--------------------------------------------------------------------------------
/Support/test/test_text_mate.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/test_helper'
2 |
--------------------------------------------------------------------------------
/config/slicehost.yml.sample:
--------------------------------------------------------------------------------
1 | ---
2 | email: your@email.com
3 | password: yourpassword
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/models/person.rb:
--------------------------------------------------------------------------------
1 | class Person < ActiveRecord::Base
2 | end
--------------------------------------------------------------------------------
/Support/lib/Builder.rb:
--------------------------------------------------------------------------------
1 | # a dummy Builder.rb to be loaded to stop the stack-overflow error
2 |
--------------------------------------------------------------------------------
/Support/images/svn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/Support/images/svn.png
--------------------------------------------------------------------------------
/Support/test/app_fixtures/config/routes.rb:
--------------------------------------------------------------------------------
1 | ActionController::Routing::Routes.draw do |map|
2 |
3 | end
4 |
--------------------------------------------------------------------------------
/Support/images/home.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/Support/images/home.gif
--------------------------------------------------------------------------------
/Support/images/rails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/Support/images/rails.png
--------------------------------------------------------------------------------
/Support/images/install.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/Support/images/install.gif
--------------------------------------------------------------------------------
/config/website.yml.sample:
--------------------------------------------------------------------------------
1 | host: your_username@rubyforge.org
2 | remote_dir: /var/www/gforge-projects/Ruby on Rails.tmbundle
3 |
--------------------------------------------------------------------------------
/website/images/logo_bundle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/website/images/logo_bundle.png
--------------------------------------------------------------------------------
/Support/test/app_fixtures/script/generate:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.expand_path('../../config/boot', __FILE__)
3 | require 'commands/generate'
4 |
--------------------------------------------------------------------------------
/Capfile:
--------------------------------------------------------------------------------
1 | load 'deploy' if respond_to?(:namespace) # cap2 differentiator
2 | Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
3 | load 'config/deploy'
--------------------------------------------------------------------------------
/Support/lib/rvm/nib/SetGemset.nib/keyedobjects.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/drnic/ruby-on-rails-tmbundle/HEAD/Support/lib/rvm/nib/SetGemset.nib/keyedobjects.nib
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/models/notifier.rb:
--------------------------------------------------------------------------------
1 | class Notifier < ActionMailer::Base
2 | def forgot_password(user, url)
3 | # Email header info
4 | @subject += "Forgotten password notification"
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/controllers/user_controller.rb:
--------------------------------------------------------------------------------
1 | class UserController < ApplicationController
2 | def new
3 | @user = User.new
4 | end
5 |
6 | def create
7 | @user = User.new(params[:user])
8 | end
9 | end
--------------------------------------------------------------------------------
/Support/lib/rvm/change_rvm:
--------------------------------------------------------------------------------
1 | if [[ -f "$HOME/.rvm/scripts/rvm" ]]; then
2 | . "$HOME/.rvm/scripts/rvm"
3 | rvm system
4 |
5 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
6 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/lib/rvm/rvm.rb"
7 | fi
8 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/controllers/admin/base_controller.rb:
--------------------------------------------------------------------------------
1 | class Admin::BaseController < ApplicationController
2 | def edit
3 | @user = User.new(params[:user])
4 | end
5 |
6 | def update
7 | @user = User.new(params[:user])
8 | end
9 | end
--------------------------------------------------------------------------------
/config/deploy.rb:
--------------------------------------------------------------------------------
1 | set :application, "railsbundle"
2 |
3 | require "slicehost/recipes/capistrano"
4 | # Used to setup/update DNS registry of url => ip
5 | set :domain_mapping, "railsbundle.com" => "208.78.99.82"
6 | set :slicehost_config, File.dirname(__FILE__) + "/slicehost.yml"
7 |
--------------------------------------------------------------------------------
/Support/test/test_helper.rb:
--------------------------------------------------------------------------------
1 | require 'test/unit'
2 | require "fileutils"
3 | $:.push File.dirname(__FILE__)
4 | $:.push File.dirname(__FILE__) + '/../lib'
5 | FIXTURE_PATH = File.expand_path(File.dirname(__FILE__) + '/app_fixtures')
6 |
7 | def ruby(command)
8 | `/usr/bin/env ruby #{command}`
9 | end
10 |
--------------------------------------------------------------------------------
/tasks/dist.rake:
--------------------------------------------------------------------------------
1 | desc "Build bundle archive for distribution"
2 | task :dist do
3 | bundle = 'Ruby\ on\ Rails.tmbundle'
4 | bundle_src = APP_ROOT
5 | bundle_dist = "website/dist"
6 | FileUtils.mkdir_p bundle_dist
7 | bundle_file = "#{bundle_dist}/#{bundle}.tar.gz"
8 | sh %{tar zcvf #{bundle_file} --exclude .git --exclude #{bundle_file} .}
9 | end
--------------------------------------------------------------------------------
/Support/lib/rvm/rvm_textmate:
--------------------------------------------------------------------------------
1 | if [[ -f "$HOME/.rvm/scripts/rvm" ]]; then
2 | . "$HOME/.rvm/scripts/rvm" > /dev/null
3 |
4 | # if [[ ! -f "$TM_PROJECT_DIRECTORY/.rvmrc" ]]; then
5 | # RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
6 | # "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/lib/rvm/rvm.rb"
7 | # fi
8 |
9 | [[ -f "$TM_PROJECT_DIRECTORY/.rvmrc" ]] && . "$TM_PROJECT_DIRECTORY/.rvmrc" > /dev/null
10 | fi
11 |
--------------------------------------------------------------------------------
/script/destroy:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3 |
4 | begin
5 | require 'rubigen'
6 | rescue LoadError
7 | require 'rubygems'
8 | require 'rubigen'
9 | end
10 | require 'rubigen/scripts/destroy'
11 |
12 | ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13 | RubiGen::Base.use_component_sources! [:newjs, :newjs_theme, :test_unit]
14 | RubiGen::Scripts::Destroy.new.run(ARGV)
15 |
--------------------------------------------------------------------------------
/script/generate:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3 |
4 | begin
5 | require 'rubigen'
6 | rescue LoadError
7 | require 'rubygems'
8 | require 'rubigen'
9 | end
10 | require 'rubigen/scripts/generate'
11 |
12 | ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13 | RubiGen::Base.use_component_sources! [:newjs, :newjs_theme, :test_unit]
14 | RubiGen::Scripts::Generate.new.run(ARGV)
15 |
--------------------------------------------------------------------------------
/Support/bin/go_to_alternate_file.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | # Copyright:
4 | # (c) 2006 syncPEOPLE, LLC.
5 | # Visit us at http://syncpeople.com/
6 | # Author: Duane Johnson (duane.johnson@gmail.com)
7 | # Description:
8 | # Makes an intelligent decision on which file to go to based on the current line or current context.
9 |
10 | require 'rails_bundle_tools'
11 | require 'rails/command_go_to_file'
12 |
13 | CommandGoToFile.alternate(ARGV)
--------------------------------------------------------------------------------
/Support/bin/go_to_file_on_current_line.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | # Copyright:
4 | # (c) 2006 syncPEOPLE, LLC.
5 | # Visit us at http://syncpeople.com/
6 | # Author: Duane Johnson (duane.johnson@gmail.com)
7 | # Description:
8 | # Makes an intelligent decision on which file to go to based on the current line or current context.
9 |
10 | require 'rails_bundle_tools'
11 | require 'rails/command_go_to_file'
12 |
13 | CommandGoToFile.on_current_line
--------------------------------------------------------------------------------
/Support/bin/routes_auto_complete.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require File.join(ENV['TM_SUPPORT_PATH'], 'lib', 'ui.rb')
4 | require File.join(ENV['TM_PROJECT_DIRECTORY'], 'config', 'environment')
5 |
6 | routes = ActionController::Routing::Routes.named_routes.routes.keys.map do |route|
7 | %w(_path _url).map { |extension| route.to_s + extension } if route != :rails_info_properties
8 | end
9 |
10 | TextMate::UI.complete(routes.flatten.compact.sort, :extra_chars => "_")
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | require 'rubygems'
2 | require 'rake'
3 | require 'rake/testtask'
4 |
5 | APP_VERSION="2.3.0"
6 | APP_NAME='Ruby on Rails.tmbundle'
7 | APP_ROOT=File.dirname(__FILE__)
8 |
9 | RUBY_APP='ruby'
10 |
11 | desc "TMBundle Test Task"
12 | task :default => [ :test ]
13 | Rake::TestTask.new { |t|
14 | t.libs << "test"
15 | t.pattern = 'Support/test/*_test.rb'
16 | t.verbose = true
17 | t.warning = false
18 | }
19 | Dir['tasks/**/*.rake'].each { |file| load file }
20 |
--------------------------------------------------------------------------------
/Support/test/fixtures/app/controllers/posts_controller.rb:
--------------------------------------------------------------------------------
1 | class PostsController < ApplicationController
2 | def new
3 | @post = Post.new
4 | end
5 |
6 | def create
7 | @post = Post.new(params[:post])
8 | end
9 |
10 | def index
11 | respond_to do |wants|
12 | wants.html { }
13 | wants.xml { }
14 | wants.js { }
15 | wants.wacky { }
16 | end
17 | respond_to do |format|
18 | format.html { }
19 | end
20 | end
21 |
22 | def edit
23 | end
24 | end
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/controllers/posts_controller.rb:
--------------------------------------------------------------------------------
1 | class PostsController < ApplicationController
2 | def new
3 | @post = Post.new
4 | end
5 |
6 | def create
7 | @post = Post.new(params[:post])
8 | end
9 |
10 | def index
11 | respond_to do |wants|
12 | wants.html { }
13 | wants.xml { }
14 | wants.js { }
15 | wants.wacky { }
16 | end
17 | respond_to do |format|
18 | format.html { }
19 | end
20 | end
21 |
22 | def edit
23 | end
24 | end
--------------------------------------------------------------------------------
/Snippets/end.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | <% end %>
7 | name
8 | end (ERB)
9 | scope
10 | text.html.ruby
11 | tabTrigger
12 | end
13 | uuid
14 | AC385ABF-96CD-4FCB-80AD-BF37D6EE79D2
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/after_save.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | after_save
7 | name
8 | after_save
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | afts
13 | uuid
14 | 4D1787E3-1583-4CF3-8D99-CC45D7C35EED
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/find(id).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find(${1:id})
7 | name
8 | find(id)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | fini
13 | uuid
14 | 59CD3A41-8164-4FB4-B462-D7ACE86BCDBF
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/after_create.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | after_create
7 | name
8 | after_create
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | aftc
13 | uuid
14 | 279D1981-B055-4693-B9AF-5B571A62A6AE
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/after_update.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | after_update
7 | name
8 | after_update
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | aftu
13 | uuid
14 | 0C9EA1A1-66C5-4E1C-9C30-E1FFE8EC6EAE
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_save.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_save
7 | name
8 | before_save
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | befs
13 | uuid
14 | 523BE8A6-0845-493D-A9B6-532F73D21950
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/after_destroy.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | after_destroy
7 | name
8 | after_destroy
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | aftd
13 | uuid
14 | A2F3E8C1-4216-4890-8491-2F8C7534ED03
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_create.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_create
7 | name
8 | before_create
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | befc
13 | uuid
14 | D64D8863-DCB6-4397-B5B0-073E0AE04167
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_destroy.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_destroy
7 | name
8 | before_destroy
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | befd
13 | uuid
14 | 3F4B502B-5F68-4687-88E9-6EF3BDF9677D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_update.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_update
7 | name
8 | before_update
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | befu
13 | uuid
14 | 1C20EEBE-B4BA-48C8-9B33-7B5BB00D958C
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/else (ERB).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | <% else %>
7 |
8 | name
9 | else (ERB)
10 | scope
11 | text.html.ruby
12 | tabTrigger
13 | else
14 | uuid
15 | B9889C00-FC9D-4956-81BF-600145F06976
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/if (ERB).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | <% if ${1:condition} %>$0
7 | name
8 | if (ERB)
9 | scope
10 | text.html.ruby
11 | tabTrigger
12 | if
13 | uuid
14 | 1ED49D4D-D4A0-4CF0-8ED2-DCE70854B839
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/rails params.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | params[:${1:id}]
7 | keyEquivalent
8 | ^p
9 | name
10 | params[…]
11 | scope
12 | source.ruby.rails
13 | uuid
14 | AC8EDA3E-875B-11D9-897C-000393CBCE2E
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/rails session.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | session[:${1:user}]
7 | keyEquivalent
8 | ^j
9 | name
10 | session[…]
11 | scope
12 | source.ruby.rails
13 | uuid
14 | 7B02ABF8-8763-11D9-897C-000393CBCE2E
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/caches_action.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | caches_action :${1:action}
7 | name
8 | caches_action
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | cache
13 | uuid
14 | 017634C2-FC55-41BA-B551-82436809D71B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/redirect_to :back.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :back
7 | name
8 | redirect_to :back
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | reb
13 | uuid
14 | BC194AE7-FA60-4E65-9503-6920D1666A29
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/scoped_by.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | scoped_by_${1:attribute}(${2:id})
7 | name
8 | scoped_by
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | sb
13 | uuid
14 | 7CC002AE-83BA-4294-B87D-DE9790839D97
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/setup do__end.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | setup do
7 | $0
8 | end
9 | name
10 | setup do..end
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | setup
15 | uuid
16 | 0A25B963-AF76-472D-BA68-07F88A64A10B
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/cattr_accessor.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | cattr_accessor :${0:attr_names}
7 | name
8 | cattr_accessor
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | crw
13 | uuid
14 | F57522B2-9F5F-4DF9-AE46-9478AF019C63
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/mattr_accessor.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | mattr_accessor :${0:attr_names}
7 | name
8 | mattr_accessor
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | mrw
13 | uuid
14 | B25B7560-FACB-4A9E-A226-B71C796BD1F3
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/logger_info.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | logger.info { "${1:message}" }$0
7 | name
8 | logger.info
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | logi
13 | uuid
14 | 36E2A3EE-E9CC-4B7F-A4CF-AFAF970B8699
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/logger_warn.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | logger.warn { "${1:message}" }$0
7 | name
8 | logger.warn
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | logw
13 | uuid
14 | 38D5CA05-E219-4399-A244-609AF40B1D0B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/map(&%3Asym_proc).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | map(&:${1:id})
7 | name
8 | map(&:sym_proc)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | mp
13 | uuid
14 | EC605540-C431-4FD0-AD91-D913118DACA7
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/logger_debug.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:Rails.}logger.debug { "${2:message}" }$0
7 | name
8 | logger.debug
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | logd
13 | uuid
14 | D975E5C1-42C2-40F1-8960-0DA533B18113
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/logger_error.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | logger.error { "${1:message}" }$0
7 | name
8 | logger.error
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | loge
13 | uuid
14 | 7053B86A-9B81-4154-AB3C-61B8035C5D33
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/logger_fatal.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | logger.fatal { "${1:message}" }$0
7 | name
8 | logger.fatal
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | logf
13 | uuid
14 | 35E95C81-22F7-4C40-8297-ED21086DDA81
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/page_hide (%2Aids).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.hide ${1:"${2:id(s)}"}
7 | name
8 | page.hide (*ids)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | hide
13 | uuid
14 | 390A447F-0FA3-4F01-A10C-4F35675E0A43
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/page_show (%2Aids).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.show ${1:"${2:id(s)}"}
7 | name
8 | page.show (*ids)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | show
13 | uuid
14 | 5ACBF49D-B5A5-495C-89D8-18AA740D9D02
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/rea.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :action => "${1:index}"
7 | name
8 | redirect_to (action)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rea
13 | uuid
14 | F2F3167C-73B9-11D9-B752-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (file) (rf).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :file => "${1:filepath}"
7 | name
8 | render (file)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rf
13 | uuid
14 | 7D43B0EA-2C3C-499B-9346-A8E48CBF29CD
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/resources.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | resources :${1:posts}${2: do
7 | $3
8 | end}
9 | name
10 | resources
11 | scope
12 | meta.rails.routes
13 | tabTrigger
14 | res
15 | uuid
16 | 92E54811-6041-4BF8-B808-918B8C11F1D9
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/xhr get.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | xhr :get, :${1:show}${2:, :id => ${3:1}}$0
7 | name
8 | xhr get
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | xget
13 | uuid
14 | 78FCF992-D01B-404F-BC54-5EE7B91F999A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/assert_rjs.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_rjs :${1:replace}, ${2:"${3:dom id}"}
7 | name
8 | assert_rjs
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrj
13 | uuid
14 | E0F281EC-5311-41F8-ADD9-2E2D059DA651
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/page_toggle (%2Aids).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.toggle ${1:"${2:id(s)}"}
7 | name
8 | page.toggle (*ids)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | tog
13 | uuid
14 | 028DA0A4-B310-4BEF-8643-2A22993C21C7
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/rec.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :controller => "${1:items}"
7 | name
8 | redirect_to (controller)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rec
13 | uuid
14 | 053490FE-73BA-11D9-B752-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (nothing) (rn).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :nothing => ${1:true}
7 | name
8 | render (nothing)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rn
13 | uuid
14 | AC8A995F-0034-433C-905D-E5C1F29D6EFF
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/RAILS_DEFAULT_LOGGER.debug (rdb).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | Rails.logger.debug "${1:message}"
7 | name
8 | Rails.logger.debug
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | deb
13 | uuid
14 | 7B15B396-1F41-4529-9253-32761E94448C
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/alias_attribute.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | alias_attribute :${1:new_name}, :${2:old_name}
7 | name
8 | alias_attribute
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | alias
13 | uuid
14 | 5694BA8B-64EC-4B1B-A00D-6366D28500C5
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/get.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | get '${1:recent}'${2:, :on => :${3:collection}}
7 | name
8 | get :on => :collection
9 | scope
10 | meta.rails.routes
11 | tabTrigger
12 | get
13 | uuid
14 | 4B0DBED3-3A95-4BE4-B61B-9CDFB8B8C07A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (action)... (ra).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :action => "${1:action}"
7 | name
8 | render (action)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | ra
13 | uuid
14 | 7B03D38B-7580-41AC-BC2B-3766AB074A43
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (layout) (rl).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :layout => "${1:layoutname}"
7 | name
8 | render (layout)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rl
13 | uuid
14 | 3F83272F-62D5-4BCB-BAA3-806083078829
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (text) (rt).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :text => "${1:text to render...}"
7 | name
8 | render (text)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rt
13 | uuid
14 | 67C5082F-5011-434A-8EAA-6B8D3600935F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (update).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :update do |${2:page}|
7 | $2.$0
8 | end
9 | name
10 | render (update)
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | ru
15 | uuid
16 | ECB10C0B-E8B7-4606-ABF5-4A2A26E5AB1A
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/test do__end.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | test "${1:something interesting}" do
7 | $0
8 | end
9 | name
10 | test do..end
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | test
15 | uuid
16 | 6ECA11FE-E8C1-4EC0-93F3-B4472752E60D
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/xhr delete.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | xhr :delete, :${1:destroy}, :id => ${2:1}$0
7 | name
8 | xhr delete
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | xdelete
13 | uuid
14 | F1BE0C3D-7203-43E9-BEFB-D1A99CDD31C1
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/xhr post.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | xhr :post, :${1:create}, :${2:object} => { $3 }
7 | name
8 | xhr post
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | xpost
13 | uuid
14 | 62C3838B-0790-4FC2-8425-F273A57F5D33
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/default_scope.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | default_scope ${1:order(${2:'${3:created_at DESC}'})}
7 | name
8 | default_scope
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | dscope
13 | uuid
14 | 83B80B60-6143-4465-B064-0DA25DDDCAA7
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/map_named_route.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:map}.${2:connect} '${3::controller/:action/:id}'
7 | name
8 | map.named_route
9 | scope
10 | meta.rails.routes
11 | tabTrigger
12 | map
13 | uuid
14 | 91C543BF-7BD8-4E3A-B493-AE572C5472A0
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/rails flash.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | flash[:${1:notice}] = "${2:Successfully created...}"$0
7 | name
8 | flash[…]
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | flash
13 | uuid
14 | D864896E-8763-11D9-897C-000393CBCE2E
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/respond_to.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | respond_to :${1:html}${2:, :${3:xml}${4:, :${5:json}}}$0
7 | name
8 | respond_to
9 | scope
10 | meta.rails.controller
11 | tabTrigger
12 | rest
13 | uuid
14 | B41D3164-EA53-4DDC-850E-27B82B24061F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/format (respond_with).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | format.${1:html|xml|json|js|any} { $0 }
7 | name
8 | format (respond_with)
9 | scope
10 | meta.rails.controller
11 | tabTrigger
12 | format
13 | uuid
14 | 32AB6C81-2C22-45E0-B5FE-23CD3E420E70
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/get :on => :member.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | get '${1:recent}'${2:, :on => :${3:member}}
7 | name
8 | get :on => :member
9 | scope
10 | meta.rails.routes
11 | tabTrigger
12 | get
13 | uuid
14 | D696088D-DDCD-4F58-9C8A-E2D99B5F345B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (inline) (ri).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :inline => "${1:<%= 'hello' %>}"
7 | name
8 | render (inline)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | ri
13 | uuid
14 | 64E93A71-6E62-48D9-9694-123080AE6723
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Test Assert Response (are).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_response :${1:success}${2:, @response.body}$0
7 | name
8 | assert_response
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asre
13 | uuid
14 | 2BD82DCB-1F19-4C8F-BC70-C0BBB06A2138
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/find(%3Aall).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find(:all${1:, :conditions => ['${2:${3:field} = ?}', ${5:true}]})
7 | name
8 | find(:all)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | fina
13 | uuid
14 | A017AB39-A875-40DC-8ACF-7E3551057CA0
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/reai.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :action => "${1:show}", :id => ${0:@item}
7 | name
8 | redirect_to (action, id)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | reai
13 | uuid
14 | 2233B484-73BA-11D9-B752-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/redirect_to (path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to(${2:${12:model}_path(${13:@}${14:${12}})})
7 | name
8 | redirect_to (path)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rep
13 | uuid
14 | A909C4C3-8EFE-4E39-9D96-BA8F0ABE6085
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (partial) (rp).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :partial => "${1:item}"
7 | name
8 | render (partial)
9 | scope
10 | source.ruby.rails, text.html.ruby, text.haml
11 | tabTrigger
12 | rp
13 | uuid
14 | 498168A5-5AF8-4F59-8A2D-B517FAB98CDB
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/xhr put.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | xhr :put, :${1:update}, :id => ${2:1}, :${3:object} => { $4 }$0
7 | name
8 | xhr put
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | xput
13 | uuid
14 | C12C98A5-74E5-4E70-9ADB-8783455D6539
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/find(%3Afirst).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find(:first${1:, :conditions => ['${2:${3:field} = ?}', ${5:true}]})
7 | name
8 | find(:first)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | finf
13 | uuid
14 | FE430ECD-5D40-4D95-A73B-F064C73992DE
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/find(%3Alast).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find(:last${1:, :conditions => ['${2:${3:field} = ?}', ${5:true}]})
7 | name
8 | find(:last)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | finl
13 | uuid
14 | 8B515110-41D3-11DD-AE16-0800200C9A66
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/map_resource.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:map}.resource :${2:resource}${10: do |${11:$2}|
7 | $0
8 | end}
9 | name
10 | map.resource
11 | scope
12 | meta.rails.routes
13 | tabTrigger
14 | mapr
15 | uuid
16 | 2183A9A9-17ED-4A4F-ABB6-668EDDD3A6E4
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/redirect_to (path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to(${2:${10:model}s_path})
7 | name
8 | redirect_to (path plural)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | repp
13 | uuid
14 | AFE06B67-CE98-42A6-93D1-8EC8E3B9F83C
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Test Assert Redirected To (art).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_redirected_to ${2::action => "${1:index}"}
7 | name
8 | assert_redirected_to
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrt
13 | uuid
14 | CD60F800-850D-47CF-BE32-3DE665DD5C68
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/assert_difference.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_difference "${1:Model}.${2:count}", ${3:+1} do
7 | $0
8 | end
9 | name
10 | assert_difference
11 | scope
12 | source.ruby
13 | tabTrigger
14 | asd
15 | uuid
16 | 30BEA6FB-301C-4460-93EC-FA3404688962
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/map_resources.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:map}.resources :${2:resource}${10: do |${11:$2}|
7 | $0
8 | end}
9 | name
10 | map.resources
11 | scope
12 | meta.rails.routes
13 | tabTrigger
14 | maprs
15 | uuid
16 | 0FF86C46-0E01-4D03-8232-72CA5BD55706
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/t_date (tcda).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.date :${1:title}
7 | t.$0
8 | name
9 | t.date (tcda)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 61CF5B32-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_text (tct).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.text :${1:title}
7 | t.$0
8 | name
9 | t.text (tct)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | FFE7B820-E4BD-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_time (tcti).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.time :${1:title}
7 | t.$0
8 | name
9 | t.time (tcti)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 537BDD48-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/content_for.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | <% content_for :${1:yield_label_in_layout} do -%>
7 | $0
8 | <% end -%>
9 | name
10 | content_for
11 | scope
12 | text.html.ruby
13 | tabTrigger
14 | conf
15 | uuid
16 | 9038B99B-4810-4C0B-B547-F72F2AD5CAFC
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/has_many (hm).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | has_many :${1:object}s${2:, :class_name => "${1}", :foreign_key => "${4:reference}_id"}
7 | name
8 | has_many
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | hm
13 | uuid
14 | F396B7BD-8255-48B1-904A-06E7D7CC2741
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/scope.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | scope :${1:name}, ${2:joins(:${3:table}).}where(${4:'${5:$3.${6:field}} = ?', ${7:'${8:value}'}})
7 | name
8 | scope
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | scope
13 | uuid
14 | 8F87F3C7-8ABB-4778-9786-64CF95E99160
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_float (tcf).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.float :${1:title}
7 | t.$0
8 | name
9 | t.float (tcf)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 1BDC463A-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_rename (tre).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.rename :${1:old_column_name}, :${2:new_column_name}
7 | t.$0
8 | name
9 | t.rename (tre)
10 | scope
11 | meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 9D4E30E2-4A61-4941-B9F3-BEE97552747A
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_string (tcs).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.string :${1:title}
7 | t.$0
8 | name
9 | t.string (tcs)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | B757F7E5-E4BD-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create date column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.date :${1:title}
7 | $0
8 | name
9 | Table column date
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcda
14 | uuid
15 | 56276686-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create text column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.text :${1:title}
7 | $0
8 | name
9 | Table column text
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tct
14 | uuid
15 | 6A9D4C30-D52D-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create time column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.time :${1:title}
7 | $0
8 | name
9 | Table column time
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcti
14 | uuid
15 | 4F5DDD37-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Migration Create Column (mcc).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.column ${1:title}, :${2:string}
7 | $0
8 | name
9 | Create Column in Table
10 | scope
11 | meta.rails.migration.create_table
12 | tabTrigger
13 | mcol
14 | uuid
15 | 7592CA99-75D7-48B6-9133-00B9F148FF43
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/assert_no_difference.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_no_difference "${1:Model}.${2:count}" do
7 | $0
8 | end
9 | name
10 | assert_no_difference
11 | scope
12 | source.ruby
13 | tabTrigger
14 | asnd
15 | uuid
16 | 5C6F4462-70E6-40B4-B3F2-F371656E7784
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/assert_redirected_to (path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_redirected_to ${10:${2:model}s_path}
7 | name
8 | assert_redirected_to (path plural)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrt
13 | uuid
14 | 0249637E-0720-46DA-A8FD-E176A2CC458B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/reca.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :controller => "${1:items}", :action => "${2:list}"
7 | name
8 | redirect_to (controller, action)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | reca
13 | uuid
14 | 0C137FBF-73BA-11D9-B752-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (nothing,status) (rns).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :nothing => ${1:true}, :status => ${2:401}
7 | name
8 | render (nothing, status)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rns
13 | uuid
14 | 724A68C1-A727-46FF-AF59-288E26B09629
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_boolean (tcb).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.boolean :${1:title}
7 | t.$0
8 | name
9 | t.boolean (tcb)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 6BE6F315-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_integer (tci).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.integer :${1:title}
7 | t.$0
8 | name
9 | t.integer (tci)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 0E63B7D5-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_timestamps (tctss).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.timestamps
7 | t.$0
8 | name
9 | t.timestamps (tctss)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 950B0BF2-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/validates_associated (va).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_associated :${1:attribute}${2:, :on => :${3:create}}
7 | name
8 | validates_associated
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | va
13 | uuid
14 | 47944705-F605-4ED4-B4C0-9E823EE25138
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/views/notifier/forgot_password.html.erb:
--------------------------------------------------------------------------------
1 | Dear <%= @name %>,
2 |
3 |
So you forgot your password to the family Website? No problem! Here's what we need to do in that case:
4 |
5 |
6 | - Request this email (DONE!)
7 | - Click on this link to reset your password
8 | - And you'll get a new password!
9 |
10 |
11 | NOTE: You'll also need your sign-in name, which is '<%= @login %>'.
12 |
13 | Remember that you can always change your password after you sign in by visiting your account information.
14 |
15 | <%= @url %>
--------------------------------------------------------------------------------
/Snippets/Create float column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.float :${1:title}
7 | $0
8 | name
9 | Table column float
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcf
14 | uuid
15 | 8AF989C4-D52E-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create string column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.string :${1:title}
7 | $0
8 | name
9 | Table column string
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcs
14 | uuid
15 | 377BF814-D52D-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/assert_redirected_to (path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_redirected_to ${2:${12:model}_path(${13:@}${14:${12}})}
7 | name
8 | assert_redirected_to (path)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrt
13 | uuid
14 | D33EDCE7-F8AF-48D4-AA7A-852BBF03E31D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/gem.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | gem '${1:name}'${2:${3:, "${4:1.0}"}${5:${6:, :require => ${7:"${8:$1}"}}${9:, :group => :${10:test}}}}
7 | name
8 | gem
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | gem
13 | uuid
14 | 5C773E3D-436E-4A28-8399-859CE41E504F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (text,status) (rts).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :text => "${1:text to render...}", :status => ${2:401}
7 | name
8 | render (text, status)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rts
13 | uuid
14 | 4F636977-F7A6-4BF5-B09B-7F087683C3B9
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/respond_with.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | respond_with(${1:@${2:model}})${3: do |format|
7 | format.${4:html} { $0 \}
8 | end}
9 | name
10 | respond_with
11 | scope
12 | meta.rails.controller
13 | tabTrigger
14 | resw
15 | uuid
16 | DDE1BA27-6259-4F87-A840-6A6E92C8594A
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/t_datetime (tcdt).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.datetime :${1:title}
7 | t.$0
8 | name
9 | t.datetime (tcdt)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 3458B140-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/t_timestamp (tcts).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.timestamp :${1:title}
7 | t.$0
8 | name
9 | t.timestamp (tcts)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 49643690-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create boolean column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.boolean :${1:title}
7 | $0
8 | name
9 | Table column boolean
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcb
14 | uuid
15 | 967093B4-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create integer column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.integer :${1:title}
7 | $0
8 | name
9 | Table column integer
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tci
14 | uuid
15 | 729D559E-D52D-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create timestamps columns.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.timestamps
7 | $0
8 | name
9 | Table column timestamps
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tctss
14 | uuid
15 | E0C8FDC4-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Table column(s) rename.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.rename :${1:old_column_name}, :${2:new_column_name}
7 | $0
8 | name
9 | Table column(s) rename
10 | scope
11 | meta.rails.migration.change_table
12 | tabTrigger
13 | tre
14 | uuid
15 | DF30226E-1111-448A-B669-7CA34EE83909
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/assert(var = assigns(%3Avar)).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert(${1:var} = assigns(:${1}), "Cannot find @${1}")
7 | $0
8 | name
9 | assert(var = assigns(:var))
10 | scope
11 | source.ruby
12 | tabTrigger
13 | asg
14 | uuid
15 | FE9C4B4E-860D-49F0-AAF7-5582B98F5F54
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/assert_select.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_select '${1:path}'${2:, :${3:text} => ${4:'${5:inner_html}'}}${6: do
7 | $0
8 | end}
9 | name
10 | assert_select
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | ass
15 | uuid
16 | DBE14FE8-B415-4DBC-A316-F8DA63FE9FD7
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/page_replace (id, partial).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.replace ${1:"${2:id}"}, :${3:partial => "${4:template}"}
7 | name
8 | page.replace (id, partial)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | rep
13 | uuid
14 | 273E5E76-8D13-4476-9C38-8AF87432CB96
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/page_visual_effect (effect, id).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.visual_effect :${1:toggle_slide}, ${2:"${3:DOM ID}"}
7 | name
8 | page.visual_effect (effect, id)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | vis
13 | uuid
14 | CFDC27A3-58CF-4198-8F93-36360978F0D0
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (action,layout) (ral).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :action => "${1:action}", :layout => "${2:layoutname}"
7 | name
8 | render (action, layout)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | ral
13 | uuid
14 | 053F1D6A-B413-43FF-B697-E3120FD0489F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (inline,type) (rit).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :inline => "${1:<%= 'hello' %>}", :type => ${2::rxml}
7 | name
8 | render (inline, type)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rit
13 | uuid
14 | A8AF8B90-94E8-42E1-8057-DDBA57809F6A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/scope lambda.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | scope :${1:name}, lambda { |${2:param}| ${3:where(${4::${5:field} => ${6:"${7:value}"}})} }
7 | name
8 | scope lambda
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | scopel
13 | uuid
14 | 5D01527E-48FA-4A3D-A10B-A383C8AE3942
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_change (tch).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.change :${1:name}${2:, :${3:string}${4:, :${5:limit} => ${6:80}}}
7 | t.$0
8 | name
9 | t.change (tch)
10 | scope
11 | meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 19761681-17E6-4DF1-8C08-73C337D29481
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create datetime column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.datetime :${1:title}
7 | $0
8 | name
9 | Table column datetime
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcdt
14 | uuid
15 | D6CBCA96-D52F-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Create timestamp column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.timestamp :${1:title}
7 | $0
8 | name
9 | Table column timestamp
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcts
14 | uuid
15 | 4600CE20-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/map_with_options.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:map}.with_options :${2:controller} => '${3:thing}' do |${4:$3}|
7 | $0
8 | end
9 |
10 | name
11 | map.with_options
12 | scope
13 | meta.rails.routes
14 | tabTrigger
15 | mapwo
16 | uuid
17 | BD4B90F7-2187-4E75-BFFB-77BE67CB8DAE
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Snippets/render (text,layout) (rtl).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :text => "${1:text to render...}", :layout => "${2:layoutname}"
7 | name
8 | render (text, layout)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rtl
13 | uuid
14 | A3B09AFE-40B5-4623-8B85-E9F369ECE22D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/gem :git.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | gem '${1:paperclip}', :git => "${2:git://github.com/thoughtbot/paperclip.git}"${3:, :branch => "${4:rails3}"}
7 | name
8 | gem :git
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | gemg
13 | uuid
14 | 675DD92F-42F1-4B55-B56A-5D4ABC1375C4
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/has_one (ho).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | has_one :${1:object}${2:, :class_name => "${3:${1/[[:alpha:]]+|(_)/(?1::\u$0)/g}}", :foreign_key => "${4:${1}_id}"}
7 | name
8 | has_one
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | ho
13 | uuid
14 | BD2E4045-54E6-450E-B31B-5E1865CFFBC9
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/map_catch_all.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${1:map}.catch_all "*${2:anything}", :controller => "${3:default}", :action => "${4:error}"
7 |
8 | name
9 | map.catch_all
10 | scope
11 | meta.rails.routes
12 | tabTrigger
13 | mapca
14 | uuid
15 | F3606586-F905-4A91-92CA-82319239221D
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/render (file,use_full_path) (rfu).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :file => "${1:filepath}", :use_full_path => ${2:false}
7 | name
8 | render (file, use_full_path)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rfu
13 | uuid
14 | 2A8FBE48-E196-4019-AE76-BF3ED4B54F47
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (partial,object) (rpo).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :partial => "${1:item}", :object => ${2:@$1}
7 | name
8 | render (partial, object)
9 | scope
10 | source.ruby.rails, text.html.ruby, text.haml
11 | tabTrigger
12 | rpo
13 | uuid
14 | BFAAC8DA-A043-4684-967B-B3E5DAE08C62
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (partial,status) (rps).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :partial => "${1:item}", :status => ${2:500}
7 | name
8 | render (partial, status)
9 | scope
10 | source.ruby.rails, text.html.ruby, text.haml
11 | tabTrigger
12 | rps
13 | uuid
14 | CBB06A4E-3A82-45F3-91AA-259F02314B9D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Migration Create Column Continue (mccc).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.column ${1:title}, :${2:string}
7 | mccc$0
8 | name
9 | Create Several Columns in Table
10 | scope
11 | meta.rails.migration.create_table
12 | tabTrigger
13 | mccc
14 | uuid
15 | 67FD2F8F-5F25-45F2-A451-2F39977A9EDE
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/Table column(s) change.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.change :${1:name}${2:, :${3:string}${4:, :${5:limit} => ${6:80}}}
7 | $0
8 | name
9 | Table column(s) change
10 | scope
11 | meta.rails.migration.change_table
12 | tabTrigger
13 | tch
14 | uuid
15 | 57A9D5BC-DD0F-422B-B857-53F30B5D763A
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/page_replace_html (id, partial).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.replace_html ${1:"${2:id}"}, :${3:partial => "${4:template}"}
7 | name
8 | page.replace_html (id, partial)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | reph
13 | uuid
14 | 8B914165-9C66-4FA3-9AD6-1DA41B25F8F1
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/recai.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to :controller => "${1:items}", :action => "${2:show}", :id => ${0:@item}
7 | name
8 | redirect_to (controller, action, id)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | recai
13 | uuid
14 | 18D3C1C3-73BA-11D9-B752-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/redirect_to (nested path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to(${2:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})})
7 | name
8 | redirect_to (nested path)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | renp
13 | uuid
14 | 9D7228B3-A6ED-4598-B096-032B3600864F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/belongs_to (bt).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | belongs_to :${1:object}${2:, :class_name => "${3:${1/[[:alpha:]]+|(_)/(?1::\u$0)/g}}", :foreign_key => "${4:${1}_id}"}
7 | name
8 | belongs_to
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | bt
13 | uuid
14 | B8F08BD7-6160-482C-8A3D-CBC6BD2079A4
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/redirect_to (nested path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | redirect_to(${2:${10:parent}_${11:child}_path(${12:@}${13:${10}})})
7 | name
8 | redirect_to (nested path plural)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | renpp
13 | uuid
14 | EF527A27-D1D4-4FD8-BD23-71397881C29A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (text,layout=%3Etrue) (rtlt).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :text => "${1:text to render...}", :layout => ${2:true}
7 | name
8 | render (text, layout => true)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | rtlt
13 | uuid
14 | 97C0992D-715F-4322-A3E0-DD4D2B7E2FC2
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/find_each.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find_each(${1::conditions => {:${2:field} => ${3:true}\}}) do |${4:${TM_CURRENT_WORD/(\w+)\./\L$1/g}}|
7 | $0
8 | end
9 | name
10 | find_each
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | fine
15 | uuid
16 | B105C480-FB21-4511-9AD0-D5B4FED3BA21
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/form_for checkbox.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.check_box :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.check_box (ffcb)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | F579F9E7-E072-4BCC-BFF9-C8C5BAE7FFA5
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for text_area.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_area :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.text_area (ffta)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | 06498926-F84D-466C-8736-B8A0AC586A94
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/lia.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :action => "${2:index}"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (action)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 9E2B42FE-7BC8-11D9-906A-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/match.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | match '${1:${2::controller}${3:/${4::action}${5:/${6::id}${7:(.:format)}}}}'${8: => '${9:$2}#${10:$4}'${11:, :as => :${12:$10}}}
7 | name
8 | match
9 | scope
10 | meta.rails.routes
11 | tabTrigger
12 | match
13 | uuid
14 | 856B8A7A-86FA-4424-B4D9-3D57D5C3E590
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (partial,collection) (rpc).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :partial => "${1:item}", :collection => ${2:@$1s}
7 | name
8 | render (partial, collection)
9 | scope
10 | source.ruby.rails, text.html.ruby, text.haml
11 | tabTrigger
12 | rpc
13 | uuid
14 | 046FB1B6-9C65-4702-91EC-4AA9878CD949
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_binary (tcbi).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}
7 | t.$0
8 | name
9 | t.binary (tcbi)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 7CE57C6C-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/validates_presence_of (vp).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_presence_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:can't be blank}"}
7 | name
8 | validates_presence_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vp
13 | uuid
14 | 5DAC28A7-33C8-4DA7-9E85-56618D6BEC9F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/assert_redirected_to (nested path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_redirected_to ${10:${2:parent}_${3:child}_path(${4:@}${5:${2}})}
7 | name
8 | assert_redirected_to (nested path plural)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrt
13 | uuid
14 | 4C92C020-7337-4D6E-91EE-7ABF2BFC7F41
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for check_box.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.check_box :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for check_box
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffcb
13 | uuid
14 | F0DB6886-4FFE-45BA-907F-44326AD8142D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for file_field.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.file_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.file_field (ffff)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | 79BC2303-3D9D-4E21-AF85-73B388B7B56D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for text_area 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_area :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for text_area
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffta
13 | uuid
14 | 4C898FA8-D09C-4B28-BE42-14BB4EA4E2B1
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for text_field.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.text_field (fftf)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | CC1BCD1C-2479-4335-B511-17B880316A75
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/layout.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | layout "${1:template_name}"${2:${3:, :only => ${4:[:${5:action}, :${6:action}]}}${7:, :except => ${8:[:${9:action}, :${10:action}]}}}
7 | name
8 | layout
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | layout
13 | uuid
14 | CCF4C4A1-28EF-499D-AD81-4A4FD2FEF5B6
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (partial,locals) (rpl).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}$0 }
7 | name
8 | render (partial, locals)
9 | scope
10 | source.ruby.rails, text.html.ruby, text.haml
11 | tabTrigger
12 | rpl
13 | uuid
14 | 6F41AFFD-B3A7-42D0-8A84-D6086C118D92
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Create binary column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}
7 | $0
8 | name
9 | Table column binary
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcbi
14 | uuid
15 | 5E9B8B0E-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/form_for file_field 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.file_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for file_field
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffff
13 | uuid
14 | C8BA285D-E12E-4AB8-A941-514C963E8226
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for hidden_field.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.hidden_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.hidden_field (ffhf)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | 5DBA8F72-DD6C-4CBF-83FD-76301E159BA9
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for text_field 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.text_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for text_field
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | fftf
13 | uuid
14 | F46EE8EE-239C-46D7-980B-3F861B7D9111
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/has_many (through).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | has_many :${1:objects}, :through => :${2:join_association}${3:, :source => :${4:${2}_table_foreign_key_to_${1}_table}}
7 | name
8 | has_many (through)
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | hmt
13 | uuid
14 | 9D58B6C9-BA52-48B3-B639-D5CB894AF810
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/lic.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :controller => "${2:items}"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (controller)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 74590E16-7BCB-11D9-906A-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/render (inline,locals) (ril).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | render :inline => "${1:<%= 'hello' %>}", :locals => { ${2::name} => "${3:value}"$4 }
7 | name
8 | render (inline, locals)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | ril
13 | uuid
14 | 1E5DE984-510C-4992-8AD5-C5FA6D7F2A88
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_numericality_of.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_numericality_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:is not a number}"}
7 | name
8 | validates_numericality_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vn
13 | uuid
14 | B21BA16D-7C04-4912-8488-425CDCC332A8
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/after_validation.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | after_validation :${1:field}${2:, :on => :${3:create|update}${4:${5:, :allow_blank => true}${6:, :allow_nil => true}}}$0
7 | name
8 | after_validation
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | aftv
13 | uuid
14 | 44FBD811-70A9-462B-AC56-F975ADAD62AF
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/assert_redirected_to (nested path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | assert_redirected_to ${2:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})}
7 | name
8 | assert_redirected_to (nested path)
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | asrt
13 | uuid
14 | 97021C0D-EB65-4046-B688-01F09B3B1615
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_filter.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_filter :${1:method}${2:${3:, :only => ${4:[:${5:action}, :${6:action}]}}${7:, :except => ${8:[:${9:action}, :${10:action}]}}}
7 | name
8 | before_filter
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | bf
13 | uuid
14 | B782A467-2C4D-48EB-AF39-518AFED4C056
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/before_validation.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | before_validation :${1:field}${2:, :on => :${3:create|update}${4:${5:, :allow_blank => true}${6:, :allow_nil => true}}}$0
7 | name
8 | before_validation
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | befv
13 | uuid
14 | A1776279-5396-4FE9-9218-8BF2C88C5271
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for hidden_field 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.hidden_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for hidden_field
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffhf
13 | uuid
14 | 99FEFD9B-5A07-46E3-950D-5C474E42B695
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for password_field.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.password_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.password_field (ffpf)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | 42289456-C8D1-498C-AE30-5206544B349F
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for radio_box.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.radio_button :${1:attribute}, :${2:tag_value}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.radio_button (ffrb)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | A95358D2-C68A-4894-8C36-062C9F45848A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/has_and_belongs_to_many (habtm).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | has_and_belongs_to_many :${1:object}${2:, :join_table => "${3:table_name}", :foreign_key => "${4:${1}_id}"}
7 | name
8 | has_and_belongs_to_many
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | habtm
13 | uuid
14 | 2AC3AC1F-743B-4A33-863C-C37885073806
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to model.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:model}.${2:name}, ${3:${4:$1}_path(${14:$1})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to model
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | E5E08AA0-4EDD-4583-BF07-5D6C49E98410
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/page_insert_html (position, id, partial).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | page.insert_html :${1:top}, ${2:"${3:id}"}, :${4:partial => "${5:template}"}
7 | name
8 | page.insert_html (position, id, partial)
9 | scope
10 | source.ruby.rails.rjs
11 | tabTrigger
12 | ins
13 | uuid
14 | 62BEA590-F4EF-4001-B661-764EDFB92811
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_lock_version (tcl).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.integer :lock_version, :null => false, :default => 0
7 | t.$0
8 | name
9 | t.lock_version (tcl)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | A677FFD4-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/validates_uniqueness_of (vu).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_uniqueness_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:must be unique}"}
7 | name
8 | validates_uniqueness_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vu
13 | uuid
14 | F8316545-9AE4-4C7F-87ED-A2C00E6637FA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/config/database.yml:
--------------------------------------------------------------------------------
1 | # SQLite version 3.x
2 | # gem install sqlite3-ruby (not necessary on OS X Leopard)
3 | development:
4 | adapter: sqlite3
5 | database: db/development.sqlite3
6 | pool: 5
7 | timeout: 5000
8 |
9 | # Warning: The database defined as "test" will be erased and
10 | # re-generated from your development database when you run "rake".
11 | # Do not set this db to the same as development or production.
12 | test:
13 | adapter: sqlite3
14 | database: db/test.sqlite3
15 | pool: 5
16 | timeout: 5000
17 |
18 | production:
19 | adapter: sqlite3
20 | database: db/production.sqlite3
21 | pool: 5
22 | timeout: 5000
23 |
--------------------------------------------------------------------------------
/Snippets/form_for password_field 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.password_field :${1:attribute}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for password_field
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffpf
13 | uuid
14 | 3379FB35-C664-4255-96C6-6E4B91F12759
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for radio_box 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.radio_button :${1:attribute}, :${2:tag_value}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for radio_button
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffrb
13 | uuid
14 | D4282CE1-4171-4B13-9220-3F2718BC2505
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/member routes.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | member do
7 | ${1:get :${2:action}}
8 | ${3:put :${4:action}}
9 | ${5:post :${6:action}}
10 | ${7:delete :${8:action}}
11 | end
12 | name
13 | member routes
14 | scope
15 | meta.rails.routes
16 | tabTrigger
17 | member
18 | uuid
19 | 7C2F96AF-7F07-4B71-A41C-812294ECA6EE
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Preferences/Symbol List: Table Names.tmPreferences:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | name
6 | Symbol List: Table Names
7 | scope
8 | meta.rails.migration.create_table
9 | settings
10 |
11 | showInSymbolList
12 | 1
13 | symbolTransformation
14 | s/([^"]*")([^"]*)(".*)/$2/
15 |
16 | uuid
17 | 35A467CF-D63D-4EBD-BD66-52674B3C07E4
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Snippets/Create functional test class.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | require 'test_helper'
7 |
8 | class ${1:Model}ControllerTest < ActionController::TestCase
9 | test$0
10 | end
11 |
12 | name
13 | Create functional test class
14 | scope
15 | source.ruby
16 | tabTrigger
17 | cla
18 | uuid
19 | F60D0630-CBF5-4283-9D20-FA46C787A88D
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Snippets/Create lock_version column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.integer :lock_version, :null => false, :default => 0
7 | $0
8 | name
9 | Table column lock_version
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcl
14 | uuid
15 | FC2523C1-D532-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/liai.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :action => "${2:edit}", :id => ${3:@item}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (action, id)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | B4F952F4-7BC8-11D9-906A-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to (path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:"${2:link text...}"}, ${3:${4:model}s_path}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (path plural)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 6BA737F0-63D1-4D82-9381-4331E18B12C5
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/stylesheet_link_tag.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}stylesheet_link_tag ${1::all}${2:, :cache => ${3:true}}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | stylesheet_link_tag
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | slt
13 | uuid
14 | 980C7667-9D60-49FF-AF74-A7B19B379F45
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_decimal (tcd).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.decimal :${1:title}${2:${3:, :precision => ${4:10}}${5:, :scale => ${6:2}}}
7 | t.$0
8 | name
9 | t.decimal (tcd)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | 26C09807-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/validates_associated if (vaif).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_associated :${1:attribute}${2:, :on => :${3:create}, :if => proc { |obj| ${5:obj.condition?} }}
7 | name
8 | validates_associated if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vaif
13 | uuid
14 | 85E9264C-5414-4FA0-AC07-F305A798ED46
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for submit.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.submit "${1:Submit}"${2:, :disable_with => '${3:$1ing...}'}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.submit (ffs)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | C315EC5D-A7F3-49CB-9795-21B78BB42FF4
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to_function.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to_function ${1:"${2:Greeting}"}, "${3:alert('Hello world!')}"$4${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to_function
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lf
13 | uuid
14 | F5983CAF-0655-45FA-A385-9E9A8C28425C
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/resources collection.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | collection do
7 | ${1:get :${2:action}}
8 | ${3:put :${4:action}}
9 | ${5:post :${6:action}}
10 | ${7:delete :${8:action}}
11 | end
12 | name
13 | collection routes
14 | scope
15 | meta.rails.routes
16 | tabTrigger
17 | col
18 | uuid
19 | 0ECA205B-6766-43B7-8B7C-A17956E1213E
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Snippets/scope with extension.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | scope :${1:name}, ${2:where(${3::${4:field} => ${5:'${6:value}'}})} do
7 | def ${7:method_name}
8 | $0
9 | end
10 | end
11 | name
12 | scope with extension
13 | scope
14 | meta.rails.model
15 | tabTrigger
16 | scopee
17 | uuid
18 | CEA1D76C-DEB0-4ADB-840D-220E569D5B8F
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Snippets/validates_confirmation_of (vc).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_confirmation_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:should match confirmation}"}
7 | name
8 | validates_confirmation_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vc
13 | uuid
14 | B5893618-D07C-48F1-8867-736D0AAFF0E7
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_length_of (vl).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_length_of :${1:attribute}, :within => ${2:3..20}${3:, :on => :${4:create}, :message => "${5:must be present}"}
7 | name
8 | validates_length_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vl
13 | uuid
14 | 5CE8838A-BF2C-497E-B87A-E90C3BC482E0
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/%3C%= Fixtures_identify(%3Asymbol) %%3E.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}Fixtures.identify(:${1:name})${TM_RAILS_TEMPLATE_END_RUBY_EXPR}$0
7 | name
8 | <%= Fixtures.identify(:symbol) %>
9 | scope
10 | source.yaml
11 | tabTrigger
12 | fi
13 | uuid
14 | 9671EB7A-89D6-4C23-914F-88CBEE0D177A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Create decimal column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.decimal :${1:title}${2:${3:, :precision => ${4:10}}${5:, :scale => ${6:2}}}
7 | $0
8 | name
9 | Table column decimal
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcd
14 | uuid
15 | 93A16768-D52E-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/form_for submit 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.submit "${1:Submit}"${2:, :disable_with => '${3:$1ing...}'}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for submit
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffs
13 | uuid
14 | 3000E569-4E19-4566-B08E-A3FFFAAC9075
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_for @${1:model} do |f|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
7 | $0
8 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
9 | name
10 | form_for
11 | scope
12 | text.html.ruby, text.haml
13 | tabTrigger
14 | ff
15 | uuid
16 | 7D99041D-C3B7-4940-AE64-6B1758CDB47C
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/javascript_include_tag.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}javascript_include_tag ${1::all}${2:, :cache => ${3:true}}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | javascript_include_tag
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | jit
13 | uuid
14 | FEF49C86-9386-405E-A191-684D1C963E3A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to (path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:"${2:link text...}"}, ${3:${12:model}_path(${13:@}${14:${12}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (path)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 326B57A7-B4A9-447B-A3D2-0EA74158E1E1
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_acceptance_of.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_acceptance_of :${1:terms}${2:${3:, :accept => "${4:1}"}${5:, :message => "${6:You must accept the terms of service}"}}
7 | name
8 | validates_acceptance_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vao
13 | uuid
14 | 89198999-7E6D-4D97-A20E-45263E1CA993
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_format_of.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_format_of :${1:attribute}, :with => /${2:^[${3:\w\d}]+\$}/${4:, :on => :${5:create}, :message => "${6:is invalid}"}
7 | name
8 | validates_format_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vf
13 | uuid
14 | EB47FBA1-AFB3-42F9-94A4-552D3175C17A
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for label 2.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.label :${1:attribute}${2:, "${3:${1/[[:alpha:]]+|(_)/(?1: :\u$0)/g}}"}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | form_for label
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ffl
13 | uuid
14 | B31822D9-2048-4D16-B2AF-00E0B4E5C368
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for label.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}f.label :${1:attribute}${2:, "${3:${1/[[:alpha:]]+|(_)/(?1: :\u$0)/g}}"}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | f.label (ffl)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | f.
13 | uuid
14 | 402C251E-595B-4A58-8EB9-41989040F280
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/has_many :dependent => :destroy.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | has_many :${1:object}s${2:, :class_name => "${1}", :foreign_key => "${4:reference}_id"}, :dependent => :destroy$0
7 | name
8 | has_many :dependent => :destroy
9 | scope
10 | meta.rails.model
11 | tabTrigger
12 | hmd
13 | uuid
14 | 3E3AF538-171B-4108-AB92-827AD7E24C77
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/image_tag.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}image_tag "$1${2:.png}"${3:${4:, :title => "${5:title}"}${6:, :class => "${7:class}"}}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | image_tag
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | it
13 | uuid
14 | 4EA6FBD1-CDEA-4DF6-9F70-A1EDA35AC3D7
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/t_references (tcr).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.references :${1:taggable}${2:, :polymorphic => ${3:{ :default => '${4:Photo}' \}}}
7 | t.$0
8 | name
9 | t.references (tcr)
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | t.
14 | uuid
15 | B6D9225C-E4BE-11DC-A11A-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/lica.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:index}"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (controller, action)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | C11C0BF5-7BC8-11D9-906A-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/Create references column.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | t.references :${1:taggable}${2:, :polymorphic => ${3:{ :default => '${4:Photo}' \}}}
7 | $0
8 | name
9 | Table column(s) references
10 | scope
11 | meta.rails.migration.create_table, meta.rails.migration.change_table
12 | tabTrigger
13 | tcr
14 | uuid
15 | EDA6568B-D533-11DC-BD8E-00112475D960
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/fields_for.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}fields_for :${1:model}, @${2:$1} do |$1|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
7 | $0
8 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
9 | name
10 | fields_for
11 | scope
12 | text.html.ruby, text.haml
13 | tabTrigger
14 | fields
15 | uuid
16 | 7C7FC66A-D566-40D3-B9DA-FCEA4EFF98C6
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/find_in_batches.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | find_in_batches(${1::conditions => {:${2:field} => ${3:true}\}}) do |${4:${TM_CURRENT_WORD/(\w+)\./\L$1/g}}s|
7 | $4s.each do |$4|
8 | $0
9 | end
10 | end
11 | name
12 | find_in_batches
13 | scope
14 | source.ruby.rails
15 | tabTrigger
16 | finb
17 | uuid
18 | B660FC85-F69A-43BC-A72A-748CBEA0AA9A
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Snippets/Migration Drop Create Table (mdct).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | drop_table :${1:table}${2: [press tab twice to generate create_table]}
7 | name
8 | Drop / Create Table
9 | scope
10 | meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table
11 | tabTrigger
12 | mtab
13 | uuid
14 | 20375601-B13F-4314-B8E4-362706566636
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/for loop erb.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | <% if !${1:list}.blank? %>
7 | <% for ${2:item} in ${1} %>
8 | $3
9 | <% end %>
10 | <% else %>
11 | $4
12 | <% end %>
13 |
14 | name
15 | for loop in rhtml
16 | scope
17 | text.html.ruby
18 | tabTrigger
19 | for
20 | uuid
21 | F7744F07-306C-4951-AB5A-3D69BA5516B7
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Snippets/validates_presence_of if (vpif) 2.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_presence_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:can't be blank}"}, :if => proc { |obj| ${5:obj.condition?} }
7 | name
8 | validates_presence_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vpif
13 | uuid
14 | F5CBBE16-F5CC-4EDA-8BC6-30281BD7D854
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/accepts_nested_attributes_for.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy => true}${4:, :reject_if => proc { |obj| ${5:obj.blank?} \}}}
7 |
8 | name
9 | accepts_nested_attributes_for
10 | scope
11 | source.ruby.rails
12 | tabTrigger
13 | anaf
14 | uuid
15 | D414D70D-BD2D-4C15-BDA6-1AAEABF7791F
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Snippets/f_fields_for (nff).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}f.fields_for :${1:attribute} do |${2:f}|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
7 | $0
8 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
9 | name
10 | f.fields_for (nff)
11 | scope
12 | text.html.ruby, text.haml
13 | tabTrigger
14 | f.
15 | uuid
16 | BBE5B6F2-A8F2-4714-9186-4FCD21A5B432
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/validates_exclusion_of (ve).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_exclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not allowed}"}
7 | name
8 | validates_exclusion_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | ve
13 | uuid
14 | 4CC98A56-B60B-4A89-80E0-400C5314A050
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for fields_for.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}f.fields_for :${1:attribute} do |${2:f}|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
7 | $0
8 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
9 | name
10 | form_for fields_for
11 | scope
12 | text.html.ruby, text.haml
13 | tabTrigger
14 | nff
15 | uuid
16 | 16645C58-C7C8-4E72-923F-3B44932F946D
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/validates_numericality_of if.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_numericality_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:is not a number}"}, :if => proc { |obj| ${5:obj.condition?} }}
7 | name
8 | validates_numericality_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vnif
13 | uuid
14 | CF506019-E964-4172-A3DA-475AE3B65558
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/licai.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (controller, action, id)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | D21BE958-7BC8-11D9-906A-000D932CD5BA
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_inclusion_of.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_inclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not included in the list}"}
7 | name
8 | validates_inclusion_of
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vi
13 | uuid
14 | 4611F02E-E9BF-11DC-8518-00112475D960
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_uniqueness_of if (vuif).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_uniqueness_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:must be unique}", :if => proc { |obj| ${6:obj.condition?} }}
7 | name
8 | validates_uniqueness_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vuif
13 | uuid
14 | 43680344-0818-42BF-95B4-58CD2D76545B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Syntaxes/RJS.tmLanguage:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | fileTypes
6 |
7 | rjs
8 |
9 | keyEquivalent
10 | ^~R
11 | name
12 | Ruby on Rails (RJS)
13 | patterns
14 |
15 |
16 | include
17 | source.ruby
18 |
19 |
20 | scopeName
21 | source.ruby.rails.rjs
22 | uuid
23 | A6AE60CD-18CA-4474-BE7A-5255BC3EF083
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Snippets/Migration Remove and Add Column (mrac).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | remove_column :${1:table}, :${2:column}${3: [press tab twice to generate add_column]}
7 | name
8 | Remove / Add Column
9 | scope
10 | meta.rails.migration - meta.rails.migration.create_table - meta.rails.migration.change_table
11 | tabTrigger
12 | mcol
13 | uuid
14 | 16A705EB-10DC-42B5-9FF2-377E206421DC
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to (nested path plural).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:"${2:link text...}"}, ${3:${10:parent}_${11:child}_path(${12:@}${13:${10}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (nested path plural)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 866AAD87-E458-4F2D-9E7C-3CE73EFC047B
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/link_to (nested path).tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to ${1:"${2:link text...}"}, ${3:${12:parent}_${13:child}_path(${14:@}${15:${12}}, ${16:@}${17:${13}})}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | link_to (nested path)
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | lt
13 | uuid
14 | 750DEEF9-18A0-40FC-8E54-574CE5EE5565
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/def get request.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | def test_should_get_${1:action}
7 | ${2:@${3:model} = ${4:$3s}(:${5:fixture_name})
8 | }get :${1}${6:, :id => @$3.to_param}
9 | assert_response :success
10 | $0
11 | end
12 | name
13 | def test_should_get_action
14 | scope
15 | meta.rails.functional_test
16 | tabTrigger
17 | deftg
18 | uuid
19 | 1C491A76-751F-44EF-8DFB-0A585C7EEFF6
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Snippets/validates_confirmation_of if (vcif).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_confirmation_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:should match confirmation}", :if => proc { |obj| ${5:obj.condition?} }}
7 | name
8 | validates_confirmation_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vcif
13 | uuid
14 | 1354726C-DA64-4CA6-A099-26626A865D8D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_length_of if.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_length_of :${1:attribute}, :within => ${2:3..20}${3:, :on => :${4:create}, :message => "${5:must be present}"}, :if => proc { |obj| ${6:obj.condition?} }}
7 | name
8 | validates_length_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vlif
13 | uuid
14 | EC511A43-D3B7-11DC-BA49-00112475D960
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_acceptance_of if.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_acceptance_of :${1:terms}${2:${3:, :accept => "${4:1}"}${5:, :message => "${6:You must accept the terms of service}"}}, :if => proc { |obj| ${7:obj.condition?} }}
7 | name
8 | validates_acceptance_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vaoif
13 | uuid
14 | A2477223-AD5A-4723-8052-943CE9BA634D
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_format_of if.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_format_of :${1:attribute}, :with => /${2:^[${3:\w\d}]+\$}/${4:, :on => :${5:create}, :message => "${6:is invalid}"}, :if => proc { |obj| ${7:obj.condition?} }}
7 | name
8 | validates_format_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | vfif
13 | uuid
14 | 14BF0586-F2E8-4AB3-BB4B-E49099384403
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/180 rails form_tag.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_tag(${1::action => "${5:update}"}${6:, {:${8:class} => "${9:form}"\}}) do${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | $0
8 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
9 | name
10 | form_tag
11 | scope
12 | text.html.ruby, text.haml
13 | tabTrigger
14 | ft
15 | uuid
16 | F0F6DACA-6A0B-11D9-BDC2-000D932CD5BA
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/def post request.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | def test_should_post_${1:action}
7 | ${3:@$2 = ${4:$2s}(:${5:fixture_name})
8 | }post :${1}${6:, :id => @$2.to_param}, :${2:model} => { $0 }
9 | assert_response :redirect
10 |
11 | end
12 | name
13 | def test_should_post_action
14 | scope
15 | meta.rails.functional_test
16 | tabTrigger
17 | deftp
18 | uuid
19 | 8B9CD068-4338-4039-AA06-D839A6C7A9FF
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Commands/Set RVM.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/change_rvm"
10 | fallbackInput
11 | word
12 | input
13 | none
14 | name
15 | Set RVM…
16 | output
17 | discard
18 | scope
19 | source.ruby.rails
20 | uuid
21 | 88047A77-B889-4F47-892D-4C3EBA98D968
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Snippets/Create controller class.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | class ${1:Model}Controller < ApplicationController
7 | before_filter :find_${2:model}
8 |
9 | $0
10 |
11 | private
12 | def find_${2}
13 | @$2 = ${3:$1}.find(params[:id]) if params[:id]
14 | end
15 | end
16 | name
17 | Create controller class
18 | scope
19 | source.ruby
20 | tabTrigger
21 | cla
22 | uuid
23 | 4B3F798E-E3B6-48C8-8C2F-CB8631011638
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Snippets/validates_exclusion_of if (veif).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_exclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not allowed}"}, :if => proc { |obj| ${7:obj.condition?} }}
7 | name
8 | validates_exclusion_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | veif
13 | uuid
14 | 869AB0B7-12DD-440A-905A-BFB1E0E16E1C
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/validates_inclusion_of if.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | validates_inclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not included in the list}"}, :if => proc { |obj| ${7:obj.condition?} }}
7 | name
8 | validates_inclusion_of if
9 | scope
10 | source.ruby.rails
11 | tabTrigger
12 | viif
13 | uuid
14 | 47FF50AF-E9BF-11DC-8518-00112475D960
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/verify (verify).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | bundlePath
6 | /Users/tobi/Library/Application Support/TextMate/Bundles/Custom.tmbundle
7 | content
8 | verify :only => [:$1], :method => :post, :render => {:status => 500, :text => "use HTTP-POST"}
9 |
10 | name
11 | verify — render
12 | scope
13 | source.ruby.rails
14 | tabTrigger
15 | verify
16 | uuid
17 | 9ECBF20C-003E-41D9-A881-4BAC0656F9DC
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Support/lib/rails/unobtrusive_logger.rb:
--------------------------------------------------------------------------------
1 | # Copyright:
2 | # (c) 2006 syncPEOPLE, LLC.
3 | # Visit us at http://syncpeople.com/
4 | # Author: Duane Johnson (duane.johnson@gmail.com)
5 | # Description:
6 | # Simple delegate class for Logger. Its purpose is to prevent littering the
7 | # home directory with log files. Useful for testing / development of bundles.
8 |
9 | require 'logger'
10 |
11 | class UnobtrusiveLogger
12 | attr_accessor :filename, :logger
13 | def initialize(filename)
14 | @filename = filename
15 | @logger = nil
16 | end
17 | def method_missing(method, *args)
18 | @logger = Logger.new(@filename) unless @logger
19 | @logger.send(method, *args)
20 | end
21 | end
22 |
23 | $logger = UnobtrusiveLogger.new("/tmp/textmate_rails_bundle.log")
24 |
--------------------------------------------------------------------------------
/Snippets/returning do %7Cvariable%7C %E2%80%A6 end.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | returning ${1:variable} do${2/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/}${2:v}${2/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}
7 | $0
8 | end
9 | name
10 | returning do |variable| … end
11 | scope
12 | source.ruby.rails
13 | tabTrigger
14 | returning
15 | uuid
16 | D2783155-23F3-4B90-A317-5BD139471193
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Snippets/verify - redirect (verify).plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | bundlePath
6 | /Users/tobi/Library/Application Support/TextMate/Bundles/Custom.tmbundle
7 | content
8 | verify :only => [:$1], :session => :user, :params => :id, :redirect_to => {:action => '${2:index}'}
9 |
10 | name
11 | verify — redirect
12 | scope
13 | source.ruby.rails
14 | tabTrigger
15 | verify
16 | uuid
17 | 7BBD3F57-57A5-4CD0-8E79-B931021FC110
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Support/lib/rails_bundle_tools.rb:
--------------------------------------------------------------------------------
1 | # Copyright:
2 | # (c) 2006 syncPEOPLE, LLC.
3 | # Visit us at http://syncpeople.com/
4 | # Author: Duane Johnson (duane.johnson@gmail.com)
5 | # Description:
6 | # Collection of Rails / TextMate classes for Ruby.
7 |
8 | bundle_lib = ENV['TM_BUNDLE_SUPPORT'] + '/lib'
9 | $LOAD_PATH.unshift(bundle_lib) if ENV['TM_BUNDLE_SUPPORT'] and !$LOAD_PATH.include?(bundle_lib)
10 |
11 | require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes'
12 | require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
13 | require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
14 |
15 | require 'rails/text_mate'
16 | require 'rails/rails_path'
17 | require 'rails/unobtrusive_logger'
18 | require 'rails/misc'
19 | require 'rails/inflector'
20 |
21 | def ruby(command)
22 | `/usr/bin/env ruby #{command}`
23 | end
24 |
--------------------------------------------------------------------------------
/Snippets/submit_tag.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}submit_tag "${1:Save changes}"${2:, :id => "${3:submit}"}${4:, :name => "${5:$3}"}${6:, :class => "${7:form_$3}"}${8:, :disabled => ${9:false}}${10:, :disable_with => "${11:Please wait...}"}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | submit_tag
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | st
13 | uuid
14 | D0E29200-E910-11DC-A399-00112475D960
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Snippets/form_for with errors.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}error_messages_for :${1:model}${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 |
8 | ${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_for @${2:$1} do |f|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
9 | $0
10 | ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}
11 | name
12 | form_for with errors
13 | scope
14 | text.html.ruby, text.haml
15 | tabTrigger
16 | ffe
17 | uuid
18 | 15BDD7B6-5C15-4684-93C7-A05E3D2221AC
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Commands/Show DB Schema.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/show_schema.rb"
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^@S
15 | name
16 | Show DB Schema for Current Class
17 | output
18 | showAsTooltip
19 | scope
20 | source.ruby.rails
21 | uuid
22 | 1970AE74-3949-40B3-B263-727AA3FF167A
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Snippets/image_submit_tag.tmSnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | content
6 | ${TM_RAILS_TEMPLATE_START_RUBY_EXPR}image_submit_tag("${1:agree.png}"${2:${3:, :id => "${4:${1/^(\w+)(\.\w*)?$/$1/}}"}${5:, :name => "${6:${1/^(\w+)(\.\w*)?$/$1/}}"}${7:, :class => "${8:${1/^(\w+)(\.\w*)?$/$1/}-button}"}${9:, :disabled => ${10:false}}})${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
7 | name
8 | image_submit_tag
9 | scope
10 | text.html.ruby, text.haml
11 | tabTrigger
12 | ist
13 | uuid
14 | 9FB9848E-EA5A-11DC-9DE5-00112475D960
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Commands/Rake Migrate.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:migrate
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Migrate to Current
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | 985F56D4-82ED-4C45-8250-2ECCFC71957E
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Support/test/app_fixtures/app/controllers/users_controller.rb:
--------------------------------------------------------------------------------
1 | class UsersController < ApplicationController
2 | def new
3 | @user = User.new
4 | end
5 |
6 | def create
7 | @user = User.new(params[:user])
8 | end
9 |
10 | def no_existing_views
11 | respond_to do |wants|
12 | wants.html { } # format with an inline block
13 | wants.js do
14 | # format with a multi-line block
15 | end
16 | wants.xml # format without a block
17 | wants.wacky # non-standard format
18 | end
19 | end
20 |
21 | def existing_views
22 | respond_to do |wants|
23 | wants.html { } # format with an inline block
24 | wants.js do
25 | # format with a multi-line block
26 | end
27 | wants.xml # format without a block
28 | wants.wacky # non-standard format
29 | end
30 | end
31 | end
--------------------------------------------------------------------------------
/Support/test/app_fixtures/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | # Settings specified here will take precedence over those in config/environment.rb
2 |
3 | # In the development environment your application's code is reloaded on
4 | # every request. This slows down response time but is perfect for development
5 | # since you don't have to restart the webserver when you make code changes.
6 | config.cache_classes = false
7 |
8 | # Log error messages when you accidentally call methods on nil.
9 | config.whiny_nils = true
10 |
11 | # Show full error reports and disable caching
12 | config.action_controller.consider_all_requests_local = true
13 | config.action_view.debug_rjs = true
14 | config.action_controller.perform_caching = false
15 |
16 | # Don't care if the mailer can't send
17 | config.action_mailer.raise_delivery_errors = false
--------------------------------------------------------------------------------
/Commands/DB Schema Dump.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:schema:dump
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Dump DB to schema.rb
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | 310C901C-EF32-4E88-938A-804ABBF8C428
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Commands/Redo Last Migration.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:migrate:redo
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Redo Last Migration
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | CFDA9F62-D071-4E0F-AD10-66AE0729FFCF
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Commands/DB Schema Import.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:schema:load
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Load schema.rb to DB
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | 6DEF923E-2347-46EC-AFBE-183D08E63DC1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Commands/Go To View.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" view
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to View
16 | output
17 | showAsTooltip
18 | scope
19 | meta.rails.controller, meta.rails.mailer, source.js, source.css
20 | uuid
21 | EE862691-A624-4797-90CF-EDD39EFB2D8E
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Load Fixtures.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:fixtures:load
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Load Fixtures (Development DB)
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | 5EEA0C71-B34B-4408-953B-F47AAD343CCC
23 |
24 |
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TextMate Bundle for Ruby on Rails Development
2 |
3 | To install with Git:
4 |
5 | mkdir -p ~/Library/Application\ Support/TextMate/Bundles
6 | cd ~/Library/Application\ Support/TextMate/Bundles
7 | git clone git://github.com/drnic/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
8 | osascript -e 'tell app "TextMate" to reload bundles'
9 |
10 |
11 | To install without Git:
12 |
13 | mkdir -p ~/Library/Application\ Support/TextMate/Bundles
14 | cd ~/Library/Application\ Support/TextMate/Bundles
15 | wget http://github.com/drnic/ruby-on-rails-tmbundle/tarball/master
16 | tar zxf drnic-ruby-on-rails-tmbundle*.tar.gz
17 | rm drnic-ruby-on-rails-tmbundle*.tar.gz
18 | mv drnic-ruby-on-rails-tmbundle* "Ruby on Rails.tmbundle"
19 | osascript -e 'tell app "TextMate" to reload bundles'
20 |
21 | Ruby 1.8.7 or greater is required.
--------------------------------------------------------------------------------
/Commands/Clone Development DB to Test DB.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:test:clone
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Clone Development DB to Test DB
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | 6F2AB859-46E3-4FF5-A9A7-E9A813AB5DE1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Commands/View demo help.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | . "$TM_SUPPORT_PATH/lib/webpreview.sh"
9 | html_header "Ruby on Rails Bundle Help" "Ruby on Rails"
10 | cat "$TM_BUNDLE_SUPPORT/../website/demo.html"
11 | html_footer
12 |
13 |
14 | input
15 | none
16 | keyEquivalent
17 | ^h
18 | name
19 | View demo help
20 | output
21 | showAsHTML
22 | scope
23 | source.ruby.rails
24 | uuid
25 | 964436B8-E578-11DC-8177-00112475D960
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Commands/Load Fixtures (Test DB).tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:fixtures:load -v RAILS_ENV -a test
10 |
11 | input
12 | none
13 | keyEquivalent
14 | ^|
15 | name
16 | Load Fixtures (Test DB)
17 | output
18 | showAsHTML
19 | scope
20 | source.ruby.rails, source.yaml
21 | uuid
22 | F758BFD1-00CA-4742-BE71-032580080F5C
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Commands/Test All.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test All
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | DC549A45-D9B0-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Go To File on This Line.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_file_on_current_line.rb"
10 | input
11 | none
12 | keyEquivalent
13 | ~@
14 | name
15 | File on Current Line
16 | output
17 | showAsTooltip
18 | scope
19 | source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, text.haml
20 | uuid
21 | 09BB96F2-75FD-48A7-8314-B5B56B09B477
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Test Recent.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:recent
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Recent
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | 190401C2-D9B1-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Test Units.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:units
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Units
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | 2C60CBA1-D9B1-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Test Plugins.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:plugins
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Plugins
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | 0D966168-D9B1-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ABOUT:
--------------------------------------------------------------------------------
1 | == Rails Bundle 1.0 -> 2.0 SOON
2 | This bundle is (c) 2006 syncPEOPLE, LLC.
3 | As of version 1.0, it is distributed under the terms of the MIT License.
4 |
5 | http://syncpeople.com/ - We develop social interaction tools for online and real-world conferences and events.
6 |
7 | == Maintained by ==
8 | Dr Nic Williams
9 | drnicwilliams@gmail.com
10 | http://drnicwilliams.com
11 |
12 | == Created by ==
13 | Duane Johnson
14 | duane.johnson@gmail.com
15 | http://blog.inquirylabs.com/
16 |
17 | == Contributors (no doubt missing many) ==
18 | Sami Samhuri
19 | James Edward Grey II
20 | Michael Sheets
21 | Allan Odgaard
22 | Cliff Matthews
23 | Kent Siblev
24 | Stephen Touset
25 | Lawrence Pit
26 | Dean Strelau
27 | Daniel Kristensen
28 | Simon Jefford
29 | James Deville
30 | Stephen Bannasch
31 | Tom Morris
32 | David Lowenfels
33 | Sam Granieri
34 | Jacob Swanner
35 | Steve Ross
36 | Charles Roper
37 | Ian Alexander Wood (@i0n)
--------------------------------------------------------------------------------
/Commands/Generate.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | #"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/generate.rb" &>/dev/null &
10 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/generate.rb"
11 |
12 | input
13 | none
14 | keyEquivalent
15 | ^|
16 | name
17 | Call Generate Script
18 | output
19 | showAsTooltip
20 | scope
21 | source.ruby.rails, source.yaml
22 | uuid
23 | 4904EDC7-5ED3-4132-AAB2-C2AD87C97EFE
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Commands/Go To Unit Test.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" unit_test
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Unit Test
16 | output
17 | showAsTooltip
18 | scope
19 | meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.functional_test, source.yaml
20 | uuid
21 | BDBB15A4-2824-4BEC-93A5-7475F9C46A39
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Test Functionals.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:functionals
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Functionals
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | F4EA552D-D9B0-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Test Integration.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:integration
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Integration
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | 04A30A4D-D9B1-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Test Uncommitted.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" test:uncommitted
13 | input
14 | none
15 | keyEquivalent
16 | ^\
17 | name
18 | Test Uncommitted
19 | output
20 | showAsHTML
21 | scope
22 | source.ruby.rails, source.yaml
23 | uuid
24 | 212C3047-D9B1-11DC-94E9-00112475D960
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Commands/Generate Quick Migration.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/generate_quick_migration.rb"
10 | fallbackInput
11 | word
12 | input
13 | none
14 | keyEquivalent
15 | ^M
16 | name
17 | Quick Migration
18 | output
19 | discard
20 | scope
21 | source.ruby.rails, source.yaml, text.html.ruby
22 | uuid
23 | D696FA2C-785A-4B73-A2F6-F750904DD7C2
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Commands/Go To Javascript.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" javascript
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Javascript
16 | output
17 | showAsTooltip
18 | scope
19 | text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml
20 | uuid
21 | B078346F-61D8-4E75-9427-80720FBC67F7
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Go To Stylesheet.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" stylesheet
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Stylesheet
16 | output
17 | showAsTooltip
18 | scope
19 | text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml
20 | uuid
21 | B207BBD4-D6AA-41E9-9530-27210F2D7B66
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Go to Fixture.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" fixture
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Fixture
16 | output
17 | showAsTooltip
18 | scope
19 | meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test
20 | uuid
21 | 638D94A4-BDFC-4FE9-8909-9934F3FD2899
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Go To Functional Test.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" functional_test
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Functional Test
16 | output
17 | showAsTooltip
18 | scope
19 | meta.rails.controller, meta.rails.helper, meta.rails.model, source.yaml, meta.rails.unit_test
20 | uuid
21 | DFE393BE-0764-49FE-B464-6350A50921E6
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Go To File.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | saveActiveFile
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb"
10 | input
11 | none
12 | keyEquivalent
13 | ~@
14 | name
15 | Alternate File
16 | output
17 | showAsTooltip
18 | scope
19 | source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, source.yaml, text.haml, source.css, source.js, source.sass
20 | uuid
21 | 0CCC8443-40F3-4BAB-9440-D737562B5F45
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/Jump to Method Definition.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/jump_to_method_definition.rb"
10 | fallbackInput
11 | word
12 | input
13 | selection
14 | keyEquivalent
15 | ^f
16 | name
17 | Jump to Method Definition
18 | output
19 | showAsTooltip
20 | scope
21 | source.ruby.rails, text.html.ruby, text.haml, source.ruby
22 | uuid
23 | AECD46CF-9031-4059-B386-262DBABD97B1
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Commands/Autocomplete Foreign Key Fixture Reference (habtm).tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" "${TM_BUNDLE_SUPPORT}/bin/fixture_auto_complete.rb" preserve
10 | fallbackInput
11 | line
12 | input
13 | selection
14 | keyEquivalent
15 | ~$
16 | name
17 | Autocomplete Foreign Key Fixture Reference (habtm)
18 | output
19 | insertAsSnippet
20 | scope
21 | source.yaml
22 | uuid
23 | 275C0B86-F735-49B6-8A22-218A8F4CC2E0
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Commands/Go To Helper.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" helper
10 | input
11 | none
12 | keyEquivalent
13 | ~$@
14 | name
15 | Go to Helper
16 | output
17 | showAsTooltip
18 | scope
19 | text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test, text.haml
20 | uuid
21 | 51C9C27A-D931-49F9-B6D8-C0E7ABEC992D
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Commands/List columns of a model.tmCommand:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | beforeRunningCommand
6 | nop
7 | command
8 | #!/usr/bin/env bash
9 | . "$TM_BUNDLE_SUPPORT/lib/rvm/rvm_textmate"
10 |
11 | RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
12 | "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/list_columns.rb"
13 | fallbackInput
14 | word
15 | input
16 | selection
17 | keyEquivalent
18 | ~
19 | name
20 | List columns of a model
21 | output
22 | discard
23 | scope
24 | source.ruby.rails
25 | uuid
26 | CF489B31-5DD2-4B83-B503-AD3ECF7BDEB7
27 |
28 |
29 |
--------------------------------------------------------------------------------