From e12c3e63c771059e756a9e6bd555332adc95c90a Mon Sep 17 00:00:00 2001 From: mangege Date: Thu, 29 Oct 2015 15:03:45 +0800 Subject: [PATCH] add link_to --- UltiSnips/eruby.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/eruby.snippets b/UltiSnips/eruby.snippets index 21e9ca0..fe38c2f 100644 --- a/UltiSnips/eruby.snippets +++ b/UltiSnips/eruby.snippets @@ -125,6 +125,10 @@ snippet jit "javascript_include_tag" w `!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`javascript_include_tag ${1::all}${2:, :cache => ${3:true}}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` endsnippet +snippet lt "link_to (name, dest)" w +`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", ${2:dest}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` +endsnippet + snippet lia "link_to (action)" w `!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`link_to "${1:link text...}", :action => "${2:index}"`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)` endsnippet