Problem in integrating Juggernaut chat plugin with Community Engine

saideep a.v.s
Tue, 10 Feb 2009 05:47:26 -0000

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---