ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Rails Completions

by mjeffrey18 ST2/ST3

Sublime Text 2 & 3, Plugin adding auto completions for Ruby on rails

Details

  • 0.0.2
  • github.​com
  • github.​com
  • 5 months ago
  • 14 minutes ago
  • 5 months ago

Installs

  • Total 1K
  • Win 259
  • OS X 444
  • Linux 481
Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6
Windows 2 2 0 1 2 0 3 2 1 2 4 0 2 3 1 1 0 2 1 0 3 0 3 0 0 1 2 2 3 2 1 0 5 2 2 3 1 0 2 5 1 3 3 2 0 1
OS X 0 1 0 2 3 5 3 2 2 0 3 2 4 2 3 3 2 0 3 2 5 5 2 2 1 3 1 4 3 2 4 0 4 7 2 5 4 0 2 3 2 3 5 0 2 0
Linux 5 5 1 1 5 2 2 5 2 3 5 2 5 5 8 6 2 2 1 6 1 10 2 2 4 3 5 2 4 1 0 4 3 2 6 4 3 4 1 4 4 3 8 5 1 4

Readme

Source
raw.​githubusercontent.​com

Rails Completions - Sublime Text Plugin

This extension for Sublime Text 2 & 3, adding snippets / autocompletions for Ruby on rails

Use the Snippets

Start typing the name of the helper you want the hit Tab to insert the full completion.

Model Callbacks

before

  • before_create
  • before_destroy
  • before_save
  • before_update
  • before_validation
  • before_validation_on_create
  • before_validation_on_update

around

  • around_create
  • around_save
  • around_update
  • around_destroy

after

  • after_commit
  • after_create
  • after_create_commit
  • after_destroy
  • after_destroy_commit
  • after_rollback
  • after_save
  • after_update
  • after_update_commit
  • after_validation
  • after_validation_on_create
  • after_validation_on_Update

model assocaitions

  • belongs_to
  • has_one
  • has_many
  • has_many_through # has_many :through
  • has_one_through # has_one :through
  • has_and_belongs_to_many

model validations

  • validate
  • validates
  • validates_acceptance_of
  • validates_associated
  • validates_confirmation_of
  • validates_each
  • validates_exclusion_of
  • validates_format_of
  • validates_inclusion_of
  • validates_length_of
  • validates_numericality_of
  • validates_presence_of
  • validates_size_of
  • validates_uniqueness_of

controllers callbacks

  • before_action
  • skip_before_action
  • around_action
  • http_basic_authenticate_with
  • redirect_to

render (.rb)

  • render
  • render_template
  • render_partial
  • render_action
  • render_action_edit
  • render_action_show
  • render_action_index
  • render_action_update
  • render_file
  • render_inline
  • render_html
  • render_json
  • render_js
  • render_xml
  • render_body
  • render_layout
  • render_status
  • render_layout

render (.erb)

  • render
  • render_template
  • render_partial
  • render_file
  • render_inline

migration

  • add_column
  • add_foreign_key
  • add_index
  • add_reference
  • add_timestamps
  • change_column_default
  • change_column_null
  • create_join_table
  • create_table
  • disable_extension
  • drop_join_table
  • drop_table
  • enable_extension
  • remove_column
  • remove_foreign_key
  • remove_index
  • remove_reference
  • remove_timestamps
  • rename_column
  • rename_index
  • rename_table

file tags (ERB only)

  • javascript_include_tag
  • stylesheet_link_tag
  • image_tag
  • javascript_pack_tag
  • stylesheet_pack_tag

Notes

All of RailsCompletions is licensed under the MIT license.

Copyright © 2018 Marc Jeffrey mjeffrey18@gmail.com

https://github.com/mjeffrey18/rails-completions