# Uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3

**URL:** <https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236>\
**Category:** Rails\
**Created:** [March 18, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236 "2009-03-18T14:49:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixandgo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@mixandgo](https://www.ruby-forum.com/u/mixandgo)\
**Post date:** [March 18, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236/1 "2009-03-18T14:49:21Z")

</div>

Hi guys,

I’ve just installed Rails 2.3 and I am using the clearance plugin  
with cucumber features. When I run rake features I get this  
“uninitialized constant ActionController::AbstractRequest (NameError)”  
error from webrat trying to call AbstractRequest which now is called  
Request (I think). My question is : Is there any way to alias the old  
name to have backwards compatibility with plugins using it ?

Thanks,  
Cezar

---

<div class="post-metadata">

**Author:** ![mixandgo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@mixandgo](https://www.ruby-forum.com/u/mixandgo)\
**Post date:** [March 18, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236/2 "2009-03-18T14:51:43Z")

</div>

On Mar 18, 12:03 pm, mixandgo [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi guys,
> 
> I’ve just installed Rails 2.3 and I am using the clearance plugin  
> with cucumber features. When I run rake features I get this  
> “uninitialized constant ActionController::AbstractRequest (NameError)”  
> error from webrat trying to call AbstractRequest which now is called  
> Request (I think). My question is : Is there any way to alias the old  
> name to have backwards compatibility with plugins using it ?

Well you can certain set ActionController::AbstractRequest to be  
whatever you want. There is no guarantee this will help you though, as  
this part of rails has undergone substantial changes in Rails 2.3 - if  
the plugin is trying to override some methods for example those  
methods may no longer exist at all.

Fred
