Suivi — Forums Erreur 500 sur les flux atom d'un forum

#193 Posté par  (site web personnel) . État de l’entrée : corrigée. Assigné à Bruno Michel.
Étiquettes : aucune
0
24
fév.
2011

Started GET "/forums/linuxfrbug.atom" for X.X.X.X at 2011-02-24 01:08:37 +0100
  Processing by ForumsController#show as ATOM
  Parameters: {"id"=>"linuxfrbug"}
Rendered forums/show.atom.builder (5.4ms)
Completed   in 17ms

ActionView::Template::Error (undefined method `id' for #<Array:0xaaca0a8>):
    4:   feed.icon("/favicon.png")
    5: 
    6:   @posts.each do |post|
    7:     feed.entry([@forum, post]) do |entry|
    8:       entry.title(post.title)
    9:       entry.content(post.body, :type => 'html')
    10:       entry.author do |author|
  app/views/forums/show.atom.builder:7:in `block (2 levels) in _app_views_forums_show_atom_builder___316886043_89559410_836254101'
  app/views/forums/show.atom.builder:6:in `each'
  app/views/forums/show.atom.builder:6:in `block in _app_views_forums_show_atom_builder___316886043_89559410_836254101'
  app/views/forums/show.atom.builder:1:in `_app_views_forums_show_atom_builder___316886043_89559410_836254101'
  app/controllers/forums_controller.rb:19:in `show'

Envoyer un commentaire

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.