# Problem in integrating Juggernaut chat plugin with Community Engine

**URL:** <https://www.ruby-forum.com/t/problem-in-integrating-juggernaut-chat-plugin-with-community-engine/159941>\
**Category:** Rails\
**Created:** [February 10, 2009, 6:48am UTC](https://www.ruby-forum.com/t/problem-in-integrating-juggernaut-chat-plugin-with-community-engine/159941 "2009-02-10T06:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saideep\_a.v.s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@saideep\_a.v.s](https://www.ruby-forum.com/u/saideep_a.v.s)\
**Post date:** [February 10, 2009, 6:48am UTC](https://www.ruby-forum.com/t/problem-in-integrating-juggernaut-chat-plugin-with-community-engine/159941/1 "2009-02-10T06:48:26Z")

</div>

Hello,

```
  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.  
I  
tried copying the source code of this method and  
add\_instance\_variable\_names  
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  
to  
these methods?

Following is the error

NameError (undefined local variable or method `add_variables_to_assigns' for #<ChatRoomsController:0xb7342530>): /vendor/plugins/juggernaut/lib/juggernaut.rb:145:in`render’  
/app/controllers/chat\_rooms\_controller.rb:89:in `send\_data’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/base.rb:1253:in  
`send’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/base.rb:1253:in  
`perform\_action\_without\_filters’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/filters.rb:617:in  
`call\_filters’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/filters.rb:610:in  
`perform\_action\_without\_benchmark’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in`measure’

Thanks & Regards,

Saideep Annadatha
