What does -%> mean in Ruby on Rails, compared to %> -


i've used <%= some_code %> insert ruby html when using ruby on rails. i've noticed other projects use <%= some_code -%>.

<%= some_code -%> minus @ end removes newline. useful formatting generated html, while <%= some_code %> not.

thanks, anubhaw


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -