# Output\_compression with Rails 2.3.4

**URL:** <https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335>\
**Category:** Rails\
**Created:** [September 11, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335 "2009-09-11T13:02:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [September 11, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335/1 "2009-09-11T13:02:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [September 11, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335/2 "2009-09-11T13:57:25Z")

</div>

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](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](http://twitter.com/abhinav)

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

---

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [September 11, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335/3 "2009-09-11T15:02:51Z")

</div>

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 🙂

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

---

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [September 11, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335/4 "2009-09-11T15:27:42Z")

</div>

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/](http://avdi.org/devblog/2008/02/23/why-monkeypatching-is-destroying-ruby/)
> 
> ## Thanks, Abhinav
> 
> à¤…à¤­à¤¿à¤¨à¤µ  
> [http://twitter.com/abhinav](http://twitter.com/abhinav)
> 
> On Fri, Sep 11, 2009 at 6:32 PM, Neetal S. \<

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

---

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [September 11, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/output-compression-with-rails-2-3-4/175335/5 "2009-09-11T15:23:29Z")

</div>

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:

> **[Monkeypatching is Destroying Ruby - avdi.codes](https://avdi.codes/why-monkeypatching-is-destroying-ruby/)**
>
> (The title of this post is intended to be deliberately provocative, as well as being a nod to Steven Colbert's "The People Destroying America" segments. It's provocative because I want to get people talking about this issue. I don't actually think...

## Thanks, Abhinav

à¤…à¤­à¤¿à¤¨à¤µ  
[http://twitter.com/abhinav](http://twitter.com/abhinav)

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