Home Download Buy Blog Forum Support

Snippets (Rails) Issues - Build 2059

Snippets (Rails) Issues - Build 2059

Postby jmesserer on Tue Jun 07, 2011 10:59 pm

I am having trouble with snippets and settings. I am using Windows 7 & Sublime build 2059.

Snippets (Rails):
In a .html.erb file, I execute the link_to snippet 'lia'<TAB> and I get 'link_to "anoehunoe", :action => "aonseuh"', I expected to get something along the lines of '<%= link_to "anoehunoe", :action => "aonseuh" %>' but most of the erb snippets seem to be missing the erb tags (<% %>). When I look at the snippet I see '${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to "${1:link text...}", :action => "${2:index}"${TM_RAILS_TEMPLATE_END_RUBY_EXPR}', I assume TM_RAILS_TEMPLATE_START_RUBY_EXPR and TM_RAILS_TEMPLATE_END_RUBY_EXPR are not resolving, do I need to set those somewhere? I assumed they are set in some Rails syntax files somewhere. I searched everything in 'C:\Users\jdm\AppData\Roaming\Sublime Text 2' but can't find any references to those variables.

Also, when I execute 'if'<TAB> in a .html.erb (Rails) file it puts in a PHP snippet ... what is misconfigured?
<?php if (condition): ?>

<?php endif ?>
Posts: 3
Joined: Tue Jun 07, 2011 9:26 pm

Re: Snippets (Rails) Issues - Build 2059

Postby jps on Mon Jul 04, 2011 12:36 pm

This should be resolved in 2077
Site Admin
Posts: 3162
Joined: Wed Mar 19, 2008 12:33 pm

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 38 guests