Browse files

use start_expr for form_for and form_tag helpers (Fixes erb problem)

  • Loading branch information...
1 parent 0517ffd commit 98d3697bb264f96db528b85ea8ac90f5fb4eddb4 @tadast committed Mar 30, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 180-rails-form_tag.sublime-snippet
  2. +1 −1 form_for.sublime-snippet
View
2 180-rails-form_tag.sublime-snippet
@@ -1,5 +1,5 @@
<snippet>
- <content><![CDATA[${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_tag(${1::action: "${5:update}"}${6:, {:${8:class}: "${9:form}"\}}) do${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
+ <content><![CDATA[${TM_RAILS_TEMPLATE_START_RUBY_EXPR}form_tag(${1:action: "${5:update}"}${6:, {:${8:class}: "${9:form}"\}}) do${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
$0
${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}]]></content>
<tabTrigger>ft</tabTrigger>
View
2 form_for.sublime-snippet
@@ -1,5 +1,5 @@
<snippet>
- <content><![CDATA[${TM_RAILS_TEMPLATE_START_RUBY_INLINE}form_for @${1:model} do |f|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
+ <content><![CDATA[${TM_RAILS_TEMPLATE_START_RUBY_EXPR}form_for @${1:model} do |f|${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
$0
${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}]]></content>
<tabTrigger>ff</tabTrigger>

0 comments on commit 98d3697

Please sign in to comment.