Skip to content

Commit

Permalink
Adds text_field_tag snippet
Browse files Browse the repository at this point in the history
Added label_tag helper.

password_tag support

added submit tag and fixed password_tag description

Added new snips to readme
  • Loading branch information
Rob Levin committed Jan 14, 2014
1 parent 5b1fd54 commit 8a15bc6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,26 @@ These snippets can now be installed via [Sublime Package Control](http://wbond.n
<td>__end__</td>
<td>`<% end %>`</td>
</tr>
<tr>
<td>`submit_tag` helper</td>
<td>__st__</td>
<td>`<%= submit_tag ..., ... %>`</td>
</tr>
<tr>
<td>`text_field_tag` helper</td>
<td>__tft__</td>
<td>`<%= text_field_tag ..., ... %>`</td>
</tr>
<tr>
<td>`password_field_tag` helper</td>
<td>__pft__</td>
<td>`<%= password_field_tag ..., ... %>`</td>
</tr>
<tr>
<td>`label_tag` helper</td>
<td>__lblt__</td>
<td>`<%= label_tag ..., ... %>`</td>
</tr>
<tr>
<td>`link_to` helper</td>
<td>__lt__</td>
Expand Down
6 changes: 6 additions & 0 deletions label_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[<%= label_tag (:${1:thing}, "${2:Your label text}" %>]]></content>
<tabTrigger>lblt</tabTrigger>
<scope>text.html.ruby</scope>
<description>insert a rails view label_tag helper</description>
</snippet>
6 changes: 6 additions & 0 deletions password_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[<%= password_field_tag(:${1:thing} %>]]></content>
<tabTrigger>pft</tabTrigger>
<scope>text.html.ruby</scope>
<description>insert a rails view password_field_tag helper</description>
</snippet>
6 changes: 6 additions & 0 deletions submit_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[<%= submit_tag "${1:My Button Text}", class: "${2:class}" %>]]></content>
<tabTrigger>st</tabTrigger>
<scope>text.html.ruby</scope>
<description>insert a rails view submit_tag helper</description>
</snippet>
6 changes: 6 additions & 0 deletions text_field_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[<%= text_field_tag "${1:name}", "${2:value}", placeholder: "${3:placeholder}", class: "${4:class}" %>]]></content>
<tabTrigger>tft</tabTrigger>
<scope>text.html.ruby</scope>
<description>insert a rails view text_field_tag helper</description>
</snippet>

0 comments on commit 8a15bc6

Please sign in to comment.