Calling method "polymorphic_url" in controller or template with array as argument, like:
polymorphic_url([@agency, @agency.divisions.first])
causing ArgumentError exception named "recursive array join". Any suggestions?
I can reproduce this exception with any of models:
@e = Estate.where(:booklets => {'$exists' => true}).first
@b = @e.booklets.first
polymorphic_url [@e,@b]
rails 3.2.3, 3.2.4, 3.2.5
ruby 1.9.2, 1.9.3