Sublime Forum

Snippets (Rails) Issues - Build 2059

#1

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’ 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’ in a .html.erb (Rails) file it puts in a PHP snippet … what is misconfigured?

<?php if (condition): ?> <?php endif ?>
0 Likes

#2

This should be resolved in 2077

0 Likes