#206 ✓out-of-date

uninitialized constant ActionController::AbstractRequest (NameError)

Reported by neo | March 25th, 2009 @ 06:01 AM

when rails version is 2.2.2 is run but today i up it to 2.3.2 the error coming

visit login_path fill_in "username",:with => "valid_user" fill_in "password",:with => "password" click_button "submit"


Comments and changes to this ticket

  • mrflip

    mrflip April 20th, 2009 @ 12:41 AM

    • Tag set to abstract, edge, rails2.3, request, webrat

    Try upgrading your webrat to >=0.4.3 ... I did

    sudo gem uninstall brynary-webrat

    and then

    sudo gem uninstall webrat

    and then things worked.

  • gaffo

    gaffo April 22nd, 2009 @ 12:51 PM

    • State changed from “new” to “out-of-date”

    Marking as out-of-date as I think this is fixed.

  • gaffo

    gaffo April 22nd, 2009 @ 12:55 PM

    Thanks for the report!

  • Alberto Perdomo

    Alberto Perdomo April 25th, 2009 @ 01:55 PM

    I am having the same issue with rails 2.3.2 and webrat 0.4.4. When using click_button i get:

      uninitialized constant ActionController::AbstractRequest (NameError)
      /home/alberto/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant'
      /home/alberto/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/field.rb:104:in `rails_request_parser'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/field.rb:82:in `to_param'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/form.rb:45:in `params'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/form.rb:44:in `each'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/form.rb:44:in `params'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/form.rb:20:in `submit'
      /usr/lib/ruby/gems/1.8/gems/brynary-webrat-0.4.0/lib/webrat/core/elements/field.rb:194:in `click'


  • Alberto Perdomo

    Alberto Perdomo April 25th, 2009 @ 02:04 PM

    Seems to work fine using github's master branch as plugin. I guess it will be fixed in the next relese.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket