2015-03-04 09:35:32 -05:00
|
|
|
priority -50
|
|
|
|
|
|
|
|
extends html
|
2015-03-16 18:50:34 -04:00
|
|
|
|
|
|
|
snippet % "<% %>" w
|
2015-03-16 19:06:58 -04:00
|
|
|
<% $0 %>
|
2015-03-16 18:50:34 -04:00
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet = "<%= %>" w
|
2015-03-16 19:06:58 -04:00
|
|
|
<%= $0 %>
|
2015-03-16 18:50:34 -04:00
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet end "<% end %>" w
|
2015-03-16 19:06:58 -04:00
|
|
|
<% end %>
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet ft "form_tag" w
|
|
|
|
<%= form_tag(${1:"${2:/users}"}, method: ${3::post}) %>
|
|
|
|
$0
|
|
|
|
</form>
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet lin "link" w
|
2015-03-19 06:27:33 -04:00
|
|
|
<%= link ${1:"${2:Submit}"}, to: ${3:"${4:/users}"}, method: ${5::delete} %>
|
2015-03-16 18:50:34 -04:00
|
|
|
endsnippet
|
2015-03-16 19:30:02 -04:00
|
|
|
|
|
|
|
snippet ff "form_for" w
|
|
|
|
<%= form_for @changeset, ${1:"${2:/users}"}, fn f -> %>
|
|
|
|
$0
|
|
|
|
|
|
|
|
<%= submit "Submit" %>
|
|
|
|
<% end %>
|
|
|
|
endsnippet
|