This project is archived and is in readonly mode.
uninitialized constant Merb ActionController
-
Nicholas Faiz
Apologies for the poorly formatted stacktrace above. Here's a better version:
Given I login as cm # features/step_definitions/webrat_steps.rb:131 uninitialized constant Merb (NameError) /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:443:in `load_missing_constant' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:92:in `const_missing' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/field.rb:70:in `to_param' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/form.rb:83:in `params' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/form.rb:82:in `each' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/form.rb:82:in `params' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/form.rb:48:in `submit' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/field.rb:163:in `click' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/scope.rb:149:in `clicks_button' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/rails.rb:88:in `send' /usr/local/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/rails.rb:88:in `method_missing' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/integration.rb:553:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/integration.rb:553:in `method_missing'
-
Nicholas Faiz
It issued from the Rails codebase. Another developer also saw the error.
Perhaps the problem has gone away now, I don't know, but immediately closing the ticket because it "doesn't look relevant" isn't looking into the problem. I would at least try to run a cucumber test without a merb gem installed in the system, or search for merb in the Rails codebase before I closed this.
-
CancelProfileIsBroken
- Rails full test suite runs fine with no merb on the system.
- I have multiple Rails apps deployed on servers with no merb and no problems.
- The only occurrence of the string "merb" in the Rails codebase is in a comment.
Net: If you're getting a merb error in your application running cucumber tests, then the issue is either in merb or your own code. Feel free to reopen if you can submit a failing test that shows an issue on pure rails.
-
Nicholas Faiz
Well, it's good that the issue has gone away.
But of us (two developers encountering this error on RC 1 in its first week) had to install the latest Merb gems to make Rails run. When we switched back 2.1.2 we no longer them.
Thanks for confirming it's no longer the case.
-
copperkray (at gmail)
- Tag set to actioncontroller, dependencies.rb
- Title changed from uninitialized constant Merb (NameError) to Encountered same problem, no resolution yet
Hi there - I've been encountering the same exact output:
/active_support/dependencies.rb:443:in `load_missing_constant'I inherited this rails project with lots of 3rd party gem dependencies from another company, and I'm wondering if the issue is a result of updating to a more recent version of Rails. I'm stumped - Every controller call to ActiveController is triggering the same error tracing to the active_support/dependencies.rb file - what is the constant that it can't locate? any helpful suggestions would be much appreciated.
-
Pratik
- Title changed from Encountered same problem, no resolution yet to uninitialized constant Merb (NameError)
-
copperkray (at gmail)
- Title changed from uninitialized constant Merb (NameError) to uninitialized constant Merb ActionController
Ok - a little more information, cause I was stuck with this error awhile and couldn't figure out a solution. I thought it might have to do with sessions, or the boot.rb file - but nothing I did resolved the issue. Finally, inevitably, I rolled back the Rails version to 2.1.1, which solved the problem, what an idiot i smacked my forehead!!
But what is going on here? It seems important to figure out what is going on between v2.1 and v2.3 that is breaking every Controller call in the app.
-
Pratik
This is NOT Rails problem. But it's likely to be related to some 3rd party gem you're using.
-
Lawrence Pit
The solution is to upgrade to the latest version of webrat.