On Mon, Jun 30, 2008 at 5:24 PM, Lost Warrior
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Experiment with adding and removing the minus sign at the end of the
> ERb <%= %> sequence (i.e., changing %> into -%>, and vice
versa.
> what will be the difference
Putting a - sign at the end (like -%>) means that no new line will be
inserted into the template in the final output.
For example:
<%= ''hello'' -%> there
Will result in "hello there"
<%= ''hello'' %> there
Will result in: "hello\n there"
--
http://lindsaar.net/
Rails, RSpec, Puppet and Life blog....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---