[Rails] ERB % tag shortcut

David Heinemeier Hansson david at loudthinking.com
Tue Nov 16 11:32:19 GMT 2004


>   % A line of Ruby code goes here.
>
> Does Rails support this shortcut?  I'm purposefully not looking up the
> documentation, because if it does and I don't know by now, it's
> perhaps not well enough documented.

Interesting feature, didn't know about it. I'm a bit undecided as to 
whether I think it's a good idea. I could easily see how you could 
accidently trigger it.

And I have <% %> and <%= %> assigned to hotkeys in TextMate anyway ;)
--
David Heinemeier Hansson,
http://www.basecamphq.com/   -- Web-based Project Management
http://www.rubyonrails.org/  -- Web-application framework for Ruby
http://macromates.com/       -- TextMate: Code and markup editor (OS X)
http://www.loudthinking.com/ -- Broadcasting Brain



More information about the Rails mailing list