On Mon, May 2, 2011 at 1:38 PM, Sergio Ruiz <lists@ruby-forum.com> wrote:
> i have tried something like
>
> string = <<END
>
> <ul class="list>
> <li>one</li>
> <li class='two'>two</li>
> </ul>
>
> END
>
> but am having no luck..
>> string = <<END
<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>
END
=> "\n<ul class="list>\n<li>one</li>\n<li class='two'>two</li>\n</ul>\n\n"
>> puts string
<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>
=> nil
>>
What kind of "luck" were you expecting?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment