[typo] Articles feed not working (5.0.3)?

Tim Prentis ruby-forum-incoming at andreas-s.net
Wed Aug 20 08:56:35 EDT 2008


Brad Hawkins wrote:
> On Apr 3, 2008, at 7:14 AM, Frederic de Villamil wrote:
> 
>>>
>>> Processing ArticlesController#index (for 76.91.178.49 at 2008-04-02
>>> 8:
>>  tell you ?
>> _______________________________________________
>> Typo-list mailing list
>> Typo-list at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/typo-list
> 
> 
> 
> 
> 
> I tried running the /article.rss and when I'm in production mode I get
> the 500 Internal Server Error, but when I switch over to development
> mode I get this error message:
> 
> 
> Showing app/views/articles/_rss20_feed.rss.builder where line #14
> raised:
> 
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.email
> 
> Extracted source (around line #14):
> 
> 11:     xml.description this_blog.blog_subtitle
> 12:
> 13:     rss20_feed.each do |value|
> 14:       value.to_rss(xml)
> 15:     end
> 16:   end
> 17: end
> 
> And if I switch it over to Atom 1.0, this is what I get:
> 
> Showing app/views/articles/_atom_feed.atom.builder where line #10
> raised:
> 
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.name
> 
> Extracted source (around line #10):
> 
> 7:   feed.generator "Typo", :uri => "http://
> www.typosphere.org", :version => '4.x'
> 8:
> 9:   atom_feed.each do |value|
> 10:     value.to_atom(feed)
> 11:   end
> 12: end
> 
> Thanks for your help! Hopefully one day I'll be more knowledgeable and
> return the favor to others!
> 
> Brad
> 
> PS - the site is running in development mode if you want to see the
> error messages yourself  -  www.washabledryink.com

I am wondering if you ever got this to work.  I am having the same exact 
issue at line #14 on version 5.1.1 and 5.1.2

You have a nil object when you didn't expect it!
 The error occurred while evaluating nil.email

 Extracted source (around line #14):

 11:     xml.description this_blog.blog_subtitle
 12:
 13:     rss20_feed.each do |value|
 14:       value.to_rss(xml)
 15:     end
 16:   end
 17: end


Anybody have suggestions?

- Tim
-- 
Posted via http://www.ruby-forum.com/.


More information about the Typo-list mailing list