Ruby on Rails

Ruby on Rails 1.0.8

分类:工具软件

版本:1.0.8

浏览:40

日期:05.16

探索最新版RubyonRails扩展插件,提升您的开发效率。适用于VisualStudioCode,提供丰富的代码片段,支持多种模板和框架,即将推出更多功能。快速安装,轻松使用,助您高效开发。

立即下载

Ruby on Rails 扩展插件预览

Ruby on Rails 开发效率提升:Visual Studio Code 扩展插件

Ruby on Rails 开发者们,现在可以使用最新版的 Visual Studio Code 扩展插件来提升您的开发效率。该插件为您提供了丰富的代码片段,支持最新的 Rails 版本,并计划推出更多功能,满足您的开发需求。

即将推出的功能:

  • Handle Bar 模板
  • HAML 模板
  • 自定义错误解决方案
  • Angular Rails
  • Reactjs Rails
  • Ember Rails
  • Jasmin Rails
  • Mocha Rails
  • Chai Rails

使用方法:

输入帮助器名称,并将 "_" 替换为 "-"。例如:

  • has-many
  • def-create
  • def-show

控制器:

例如:

类型输出
crud完整的 CRUD 帮助器
def-create创建资源的定义
find-idfind(id)
find-paramsfind(params[:id])

模型:

  • after-create

  • after-save

  • after-update

  • after-destroy

  • after-validation

  • after-validation-on-create

  • after-validation-on-Update

  • before-action

  • before-create

  • before-save

  • before-validation

  • before-destroy

  • before-update

  • before-validation-on-create

  • before-validation-on-update

  • has-many

  • has-many-through

  • has-many-dependent

  • has-one

  • has-one-through

  • has-and-belongs-to-many

  • validate

  • validates

  • validates-acceptance-of

  • validates-acceptance-of-if

  • validates-associated

  • validates-associated-if

  • validates-confirmation-of

  • validates-confirmation-of-if

  • validates-exclusion-of

  • validates-exclusion-of-if

  • validates-format-of

  • validates-format-of-if

  • validates-inclusion-of

  • validates-inclusion-of-if

  • validates-length-of

  • validates-length-of-if

  • validates-length-of-is

  • validates-length-of-minimum

  • validated-numericality-if

  • validated-numericality-of

  • validated-presence-of

  • validated-presence-of-if

  • validated-uniqueness-of

  • validated-uniqueness-of-if

迁移:

类型输出
t.binaryBinary
t.booleanBoolean
t.timeTime
t.timestampTimestamp
t.timestampsTimestamps
t.dateDate
t.datetimeDatetime
t.decimalDecimal
t.floatFloat
t.integerInteger
t.integer-lockInteger Lock
t.referencesReferences
t.renameString
t.textText
t.renameRename
t.columnColumn
t.columnsColumns
add-columnAdd Column
remove-columnRemove column
change-columnChange column
rename-columnChange column
add-indexAdd index
remove-indexRemove Index
create-tableCreate Table
drop-tableDrop Table

ERB 模板:

  • for-loop
  • each
  • if
  • if-else
  • if-unless-inline
  • else
  • else-if
  • end
  • emded (%< %>)
  • emded-print (<%= %>)
  • collection-select
  • stylesheet-link-tag
  • submit-tag
  • flash
  • fixture
  • form_tag
  • format
  • image_submit_tag
  • map
  • $label
  • bye-bug
  • buy-bug-erb

渲染:

  • render
  • render-action
  • render-action-layout
  • render-file
  • render-file-path
  • render-inline
  • render-inline-local
  • render-inline-type
  • render-layout
  • render-layout-default
  • render-nothing
  • render-nothing-status
  • render-partial
  • render-partial-collection
  • render-partial-object
  • render-partial-status
  • render-text
  • render-text-layout
  • render-text-layout-true
  • render-text-status
  • render-update

Gem:

  • gem-development
  • gem-test
  • gem-production
  • gem-development-test

属性:

  • presense
  • length
  • method
  • delete
  • data
  • only
  • edit
  • update
  • show
  • destroy
  • format

使用代码片段:

开始输入您想要的帮助器名称(例如:"emb" 代表 "embed"),然后按 Tab 键插入代码片段。

或者,按 Ctrl Space(Windows, Linux)或 Cmd Space(OSX)在编辑器中激活代码片段。

安装步骤:

  1. 安装 Visual Studio Code 1.10.0 或更高版本
  2. 启动 Code
  3. 从命令面板 Ctrl-Shift-P(Windows, Linux)或 Cmd-Shift-P(OSX)
  4. 选择安装扩展
  5. 选择扩展插件
  6. 重新加载 Visual Studio Code

最新下载

更多 ›

相关文章

更多 ›

课程推荐

更多 ›
首页