Hi all,
In php i can do something like this:
<?php
print 'hello';
print ' world';
?>
Is there an equivalent to print in eruby, or do I have to use multiple
<%= %> lines?
Thanks!
Jack
p.s. I tried posting this before, but I don’t see it. Sorry if this is a
repeat.
p.s. I tried posting this before, but I don’t see it. Sorry if this is a
repeat.
Well, just found the other post…sorry again folks.
jack dempsey wrote:
Is there an equivalent to print in eruby, or do I have to
use multiple <%= %> lines?
Anything eRb encounters that’s not within <%= %> or <% %> is simply
passed
through to the page. In your example you were printing string literals.
To
do that in a RoR view, just type the text in the view.
hth,
Bill