Displaying 20 results from an estimated 6000 matches similar to: "Upgrading 2.2 to 2.3: console broken, "uninitialized constant Module::ActiveSupport""
2008 Dec 11
2
uninitialized constant ActionVie
Hello
I am trying to transform my web app into a 2.2 ready app,
in my config/environment.rb
I wrote
Rails::Initializer.run do |config|
.....
# disabling the surrounding div if validation error
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if html_tag.include?("class=")
html_tag.sub(%r{(class=["''])}, ''\1invalid '')
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the
first line of code which is require ''active_support'' :
/var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55:
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi
After having updated some GEMS I get `load_missing_constant'':
uninitialized constant ActiveSupport::Cache (NameError) on starting
the server of a freshly generated rails project.
Before, I already had Rails 2.3.2 projects succesfully running, now
all of them generate this error.
These are my GEMS:
actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0)
actionpack (2.3.2, 2.2.2, 2.1.2,
2009 Apr 26
1
validators.rb breaks after update from Rails 2.2.2 to 2.3.2
I just updated my rails application from 2.2.2 to 2.3.2 and the
following message is displayed while trying to start with ./script/
server:
[code]
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/module/aliasing.rb:33:in `alias_method'':
undefined method `valid?''
2009 Mar 21
6
script/console: "no such file to load -- application.rb (MissingSourceFile)"
Here''s what I get when I try to use the console with the current facebooker:
First I make a simple app:
rails foo -d mysql
cd foo
script/plugin install git://github.com/mmangino/facebooker.git
Then I go to config/environment.rb and change the rails version to
''2.2.2'' Then I run the console:
script/console
and I get:
[17:56][herdrick:~/rails/foo]$ script/console
2009 Apr 27
2
uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
I''m just starting on BDD. I installed the gems for webrats and
cucumber.
I also ran the following in the Ruby shell:
>rake gems:install RAILS_EN=test
>script/generate cucumber
These commands seemed to create the expected features and lib folders
in my project.
I''m using the eclipse framework with Aptana and RadRails as my IDE.
However, when I run:
>cucumber features
2009 Mar 18
1
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
2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list,
I am trying to override the post_form method of Net::HTTP so that it
does something before actually doing the post. I tried the following
in environments/development.rb
module Net
class HTTP
alias_method_chain :post_form, :intercept
def post_form_with_intercept(url, params)
# Do something before post
logger.info(''About to post at
2008 Nov 28
3
Beginner: "NameError - uninitialized constant" when I create a model object
My first Rails example using model and I got this NameError:
NameError in VandaController#att
uninitialized constant VandaController::Compute
Same code works fine if I don''t create the Compute object.
What did I do wrong?
Here is the Controller
class VandaController < ApplicationController
def att
@compute = Compute.new
@data1 = @compute.cmpt
end
end
Here is the Model
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails
console I get the error:
>> b = Bar.new(:name => ''Some Bar'')
NameError: uninitialized constant Bar
from (irb):1
from :0
(My model class is called Bar, and is in file app/models/bar.rb)
So, I try to load the model class file, and I run into a more frigtening
error:
>> load
2009 May 10
3
Ruby 1.9 problem
What wrong:
# rails test
/var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext/uri.rb:8:in
`<top (required)>'': uninitialized constant URI::Parser (NameError)
from
/var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in
`require''
from
/var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in
`block in
2007 Jan 20
2
Rails 1.2.1 console not working
I''m running Rails 1.2.1, Ubuntu Server 6.10 and my console isn''t
running... same project checked out via SVN runs in console on my
Windows machine.
error:
brian@rails-server:~/work/mediabump$ ruby script/console
Loading development environment.
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/console.rb:25:in
`exec'': No such file or directory - irb -r
2005 Sep 18
5
NameError: uninitialized constant Addres
I created some scaffolding for an Address model and an Addresses controller.
When running the functional tests for the addresses controller, I get
this exception: "NameError: uninitialized constant Addres"
The exception seems to start from this function:
def list
@address_pages, @addresses = paginate :address, :per_page => 10
end
I''m guessing pluralization bug?
2009 Nov 06
2
DatePickerCtrl uninitialized constant
I trying to make a Dialog that include a DatePickerCtrl on my gentoo
linux box.
I get the following error
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:478:in
`const_missing'': uninitialized constant PortfolioDialog::DatePickerCtrl
(NameError)
My application use ActiveRecord, thats why the error is from
activesupport.
gem list says
wxruby (1.9.9,
2009 Apr 24
4
uninitialized constant Facter::IPAddress (NameError)
I just started getting this error on some machines after a yum update
from centos 5.2 to centos 5.3. Does anyone know what it means? Since
I''m not a ruby person, I''m not sure how to debug this, but it looks to
me like facter is having trouble parsing information about my
interfaces.
# facter
/usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb:19: uninitialized constant
2008 Sep 20
2
NameError: uninitialized constant Inflector
I follwed the example here:
http://dekstop.de/weblog/2005/12/rails_inflector_in_ruby_scripts/
#!/usr/bin/ruby
require ''rubygems''
require ''active_support/inflector''
puts Inflector.singularize(''inflections'')
I loaded it into irb and wrote a killer script both of which worked
perfectly for weeks.
Now when I try and run the script or run
2009 Oct 21
3
alias_method_chain and ActiveSupport::TestCase
I''m trying to add some functionality to the setup method of all my
tests.
I added a method called setup_with_ts in the test_helper and chained
it using alias_method_chain :setup, :ts and that works great for every
test that does not define setup in the test.
So for my unit tests i tried also defining the same method
setup_with_ts in a
class ActiveSupport::TestCase
def setup_with_ts
2009 Nov 14
1
`const_missing': uninitialized constant CGI::Session (NameEr
Hi all...
I am facing the following error
"`const_missing'': uninitialized constant CGI::Session (NameError)"
While running "script/generate controller abc"
Having any idea????
Thanks all.....
--
Posted via http://www.ruby-forum.com/.
2006 Feb 02
4
uninitialized constant Test (NameError)
I have three Rails apps on my laptop.
Two can runs tests just fine.
The third generates this error when I try to run any tests:
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
> active_support/dependencies.rb:200:in `const_missing'':
> uninitialized constant Test (NameError)
> from ./test/unit/../test_helper.rb:5
> from
2006 Jul 10
2
''uninitialized constant'' error
Hi All,
I am fairly new to Ruby and backgroundRB. I am trying to run a simple example in Windows to get my feet wet with backgroundRB and am running into an ''uninitialized constant'' error when I invoke the controller on my rails app.
In ''MyTest'' Controller
-------------------
def longrun
session[:job_key] = MiddleMan.new_worker(:class =>