Output_compression with Rails 2.3.4

Hi

Am in a process of upgrading my rails 2.1.2 to Rails 2.3.4.
I have freezed the Rails 2.3.4 to my application as well.

Here comes the problem , am using output_compression plugin for Gzip.
But it is creating problem , am facing this error ,

undefined method `is_component_request?’ for
#ActionController::Request:0x78fcb0c

Tried searching for newer version of the plugin , which ll support with
Rails 2.3.4. But no luck.

Is this plugin does not work with Rails 2.3.4.

Please help me with this.

Thanks in Advance.

Neetal

Hi Neetal,

I see you facing a lot of problems with Rails 2.3.4 migration. It’s a
very
new release and probably you should wait for some more time to plugin
authors to migrate.

I was browsing output_compression plugin code (
http://craz8.com/svn/trunk/plugins/output_compression/lib/output_compression.rb)
and it defines is_component_request? in AbstractRequest class. As far
as I
know, AbstractRequest was renamed to Request in Rails 2.3. Although, it
is
not a good idea to monkey patch the plugin, but if it’s very urgent you
can
try renaming AbstractRequest to Request and see whether it solves (or
create
new) problem.

Thanks,
Abhinav

अभिनव
http://twitter.com/abhinav

On Fri, Sep 11, 2009 at 4:32 PM, Neetal S. <

Hi Abhinav

Thanks for quick response.

Yeah thats right that this version is very new,but we are building a
platform, and have a requirement to build it on highest version. Can’t
help :slight_smile:

I tried changing AbstractRequest to Request in output_compression. But
error is still the same.

Please suggest me , what else i can try and make it work.

Thanks
Neetal

Abhinav S. wrote:

Neetal, I have no idea. You should probably contact plugin author for
help.

On a different note, I was reading about problem with Ruby’s
monkeypatching
and I appreciate Avdi’s view now:
http://avdi.org/devblog/2008/02/23/why-monkeypatching-is-destroying-ruby/

Thanks,
Abhinav

अभिनव
http://twitter.com/abhinav

On Fri, Sep 11, 2009 at 6:32 PM, Neetal S. <

================
Sure Abhinav , Thanks much !!

Neetal, I have no idea. You should probably contact plugin author for
help.

On a different note, I was reading about problem with Ruby’s
monkeypatching
and I appreciate Avdi’s view now:
http://avdi.org/devblog/2008/02/23/why-monkeypatching-is-destroying-ruby/

Thanks,
Abhinav

अभिनव
http://twitter.com/abhinav

On Fri, Sep 11, 2009 at 6:32 PM, Neetal S. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs