Ah! Thanks for the clarification. Works great. Love Haml!

On Oct 29, 6:45 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Haml defines a local "open" helper which is used to succinctly create
> HTML in Ruby code. If you need to use Kernel.open, you have to
> explicitly reference the namespace.
>
> - Nathan
>
> russ816 wrote:
> > Whenever I try to include this code inside a haml view I get errors.
>
> > Haml: 1.7.1
> > Ruby: 1.8.6
> > Rails: Edge
>
> > Code:
> > FeedNormalizer::FeedNormalizer.parse(open('http://www.iht.com/rss/
> > frontpage.xml')).entries.first
>
> > Error:
> > You have a nil object when you didn't expect it!
> > You might have expected an instance of Array.
> > The error occurred while evaluating nil.entries
>
> > This only happens in Haml, it works fine in erb.
>
> > Feed Normalizer Readme
> >http://code.google.com/p/feed-normalizer/wiki/Readme


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to