Defect #23846

NoMethodError (undefined method `reverse!'

Added by Jean-Michel Bain-Cornu about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:Invalid Affected version:2.5.2

Description

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

History

#1 Updated by Toshi MARUYAMA about 1 year ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Redmine 2.5.2 is too old.
It is not use Rails 4.1.8.

#2 Updated by Jean-Michel Bain-Cornu about 1 year ago

OK.
As it was install recently by Debian apt, that means this package is not up to date, and another one must be taken, probablement from a development server.
Thanks

Also available in: Atom PDF