Forum: Ruby on Rails Problem in integrating Juggernaut chat plugin with Community Engine

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
saideep a.v.s (Guest)
on 2009-02-10 07:48
(Received via mailing list)

      I have been trying to integrate juggernaut chat plugin with
Community-engline and as rails decided to deprecate
add_variables_to_assigns method
in rails 2.2. They don't include this on the list of deprecated methods
so I
don't know how to find an alternative to this method. This method is
used by
the juggernaut plugin and I wanna try getting it to work with rails 2.2.
tried copying the source code of this method and
source to the application.rb file but now I'm getting NameError
(uninitialized class variable @@protected_view_variables in
ApplicationController). Does anyone know if there are any alternatives
these methods?

Following is the error

NameError (undefined local variable or method `add_variables_to_assigns'
    /vendor/plugins/juggernaut/lib/juggernaut.rb:145:in `render'
    /app/controllers/chat_rooms_controller.rb:89:in `send_data'





    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

Thanks & Regards,

Saideep Annadatha
This topic is locked and can not be replied to.