Thanks so much for your kind explanation. Unfortunately, it still
doesn't make sense to me.
The documentation for the ERB class tells us:
<% Ruby code -- inline with output %>
<%= Ruby expression -- replace with result %>
That makes perfect sense. The documentation even alludes to the
capability in question in an example; but, it really isn't discussed.
In discussing <% %>, the Agile Rails book makes the observation,
"Interestingly, this kind of processing can be intermixed with non-
ruby code." Then they give a minor example and launch into a
discussion dealing with extraneous new line characters.
Am I alone in thinking that this is a monumental capability that
deserves a better understanding?
Anyway, thanks very much for the response. I'm sorry that it didn't
quite bridge the gap for me. I guess that I either have a mental
block or am just super dense. Thanks again.
... doug
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---