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
-~----------~----~----~----~------~----~------~--~---