Just a simple question. I know what this does" <%= %> for output but
what is the purpose of the negative sign in this <%= -%> in a rhtml
template?
On Jul 26, 12:27 pm, Rick L. [email protected]
wrote:
Just a simple question. I know what this does" <%= %> for output but
what is the purpose of the negative sign in this <%= -%> in a rhtml
template?
Doesn’t “-” suppress newlines?
On Jul 26, 12:27 pm, Rick L. [email protected]
wrote:Just a simple question. I know what this does" <%= %> for output but
what is the purpose of the negative sign in this <%= -%> in a rhtml
template?Doesn’t “-” suppress newlines?
Yes.
On Thu, 26 Jul 2007, Eno wrote:
On Jul 26, 12:27 pm, Rick L. [email protected]
wrote:Just a simple question. I know what this does" <%= %> for output but
what is the purpose of the negative sign in this <%= -%> in a rhtml
template?Doesn’t “-” suppress newlines?
Yes, within Rails. IIRC erb/eruby doesn’t make use of this outside
Rails.
HTH
Hugh