Sublime Forum

Rails snippets

#1

For example, if i want to create a new method I am writing: def+tab
Which snippets should I use so I can create <% %>, <%= %>, <%= link_to ‘’, %> blocks?
And where can I read a list of most used snippets for Rails?

Thanks!

0 Likes

#2

Hey this one is a pretty good one. It mirrors the one that Ryan Bates uses on railscasts.com:

viewtopic.php?f=5&t=1770&p=8121&hilit=ryan+on+rails#p8121

I added the Netbeans style creation of <%…%> and <%=…%> by adding new snippets.

-nobleach

0 Likes