Project

General

Profile

NoMethodError (undefined method `reverse!'

Added by Jean-Michel Bain-Cornu about 8 years ago

Hi guys,

Found an error on activating a link on an announce :
NoMethodError (undefined method `reverse!' for #<ActiveRecord::Associations::CollectionProxy []>):
app/controllers/news_controller.rb:62:in `show'

There is a workaround by commenting the faulty line :

def show
    @comments = @news.comments
    # @comments.reverse! if User.current.wants_comments_in_reverse_order?
end

but I miss skills to figure out what's happening.

Environment:
Redmine version 2.5.2.devel
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.1.8
Environment production
Database adapter Mysql2

After submitting my issue, I see this is the wrong place ; sorry about that


Replies (1)

    (1-1/1)