mixandgo
2009-Mar-18 12:03 UTC
uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2009-Mar-18 13:50 UTC
Re: uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
On Mar 18, 12:03 pm, mixandgo <ce...-WE3S9J525URWk0Htik3J/w@public.gmane.org> 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> Thanks, > Cezar--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
- Bug in AbstractRequest.path() ?
- Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
- [PATCH] - AbstractRequest#parameters destructively overwrites request_ and query_parameters
- [PATCH] ActionController::CgiRequest#host_with_port() should handle standard port