#{param} is a string replacement, ¶m will actually execute the
ruby code following it. sometimes there's no difference in effect,
like when it's looking for a string and sometimes it's completely
different. Think about it irb sense, what's the difference between
"Object" and Object? One's a string and one is a constant pointing to
a class definition with COMPLETELY different results from most
methods.
On Nov 12, 9:39 pm, EugZol <[email protected]> wrote:
> Hi there!
>
> I wonder, what's the difference between <my_tag attr="#{param}"/> and
> <my_tag attr="¶m"/>?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.