Permalink
Browse files

adapted erb to 1.9

  • Loading branch information...
1 parent 54d2f09 commit 829105be7c889061a2ee148ba405144953102a84 @ceritium committed Dec 6, 2011
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:as =&gt; :$1$0</string>
+ <string>as: :$1$0</string>
<key>name</key>
<string>:as =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:button_html =&gt; {$1}$0</string>
+ <string>button_html: {$1}$0</string>
<key>name</key>
<string>:button_html =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:hint =&gt; '$1'$0</string>
+ <string>hint: '$1'$0</string>
<key>name</key>
<string>:hint =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:input_html =&gt; {$1}$0</string>
+ <string>input_html: {$1}$0</string>
<key>name</key>
<string>:input_html =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:label =&gt; '$1'$0</string>
+ <string>label: '$1'$0</string>
<key>name</key>
<string>:label =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>:input_html =&gt; {$1}$0</string>
+ <string>input_html: {$1}$0</string>
<key>name</key>
<string>:wrapper_html =&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;%= f.input :$1${2:, :label =&gt; '$3'} %&gt;$0</string>
+ <string>&lt;%= f.input :$1${2:, label: '$3'} %&gt;$0</string>
<key>name</key>
<string>= f.input (ERB)</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;%= f.input :$1${2:, :label =&gt; '$3'}, :required =&gt; ${4:true}$0 %&gt;</string>
+ <string>&lt;%= f.input :$1${2:, label: '$3'}, required: ${4:true}$0 %&gt;</string>
<key>name</key>
<string>= f.input :required =&gt; (ERB)</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>= f.input :$1${2:, :label =&gt; '$3'}, :required =&gt; ${4:true}$0</string>
+ <string>= f.input :$1${2:, label: '$3'}, required: ${4:true}$0</string>
<key>name</key>
<string>= f.input :required =&gt; (HAML)</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;% f.inputs${1: :name =&gt; '$2'}, :for =&gt; :$3 do |${4:g}| %&gt;
+ <string>&lt;% f.inputs${1: name: '$2'}, for: :$3 do |${4:g}| %&gt;
$5
&lt;% end %&gt;$0</string>
<key>name</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;% f.inputs${1: :name =&gt; '$2'} do %&gt;
+ <string>&lt;% f.inputs${1: name: '$2'} do %&gt;
$3
&lt;% end %&gt;$0</string>
<key>name</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>render '${1:form}', :${2:f} =&gt; ${3:f}$0</string>
+ <string>render '${1:form}', ${2:f}: ${3:f}$0</string>
<key>name</key>
<string>render &lt;partial form&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>render '${1:form}', :${2:f} =&gt; ${3:f}$0</string>
+ <string>render '${1:form}', ${2:f}: ${3:f}$0</string>
<key>name</key>
<string>render &lt;partial form&gt;</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;%= render '${1:form}', :${2:f} =&gt; ${3:f} %&gt;$0</string>
+ <string>&lt;%= render '${1:form}', ${2:f}: ${3:f} %&gt;$0</string>
<key>name</key>
<string>= f.render partial form (ERB)</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>= render '${1:form}', :${2:f} =&gt; ${3:f}$0</string>
+ <string>= render '${1:form}', ${2:f}: ${3:f}$0</string>
<key>name</key>
<string>= f.render partial form (HAML)</string>
<key>scope</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;% semantic_form_for(${1:@${2:object}}${3:, :html =&gt; { :method =&gt; ${4::put} \}}) do |${5:f}| %&gt;
+ <string>&lt;% semantic_form_for(${1:@${2:object}}${3:, html: { method: ${4::put} \}}) do |${5:f}| %&gt;
$0
&lt;% end %&gt;</string>
<key>name</key>

0 comments on commit 829105b

Please sign in to comment.