similar to: warning: already initialized constant ...

Displaying 20 results from an estimated 20000 matches similar to: "warning: already initialized constant ..."

2005 Apr 01
1
warning: already initialized constant (is this a bug?)
since I upgraded to 0.11.1 I get a string of "warning: already initialized constant" errors in my error log. I couldn''t figure it out. I created a blank rails project to test it. two models : account belongs_to :user user has_many :accounts in the accounts model, I set the following constants CLOSED = 0 INACTIVE = 1 ACTIVE = 2 then I set up a test controller with a simple
2012 May 29
0
racc/parser.rb:27: warning: already initialized constant Racc_Runtime_Version
Hi, I tried this puppet shell command and I''m getting a warning: oracle@z3:/pt/b/puppet$ puppet describe -s user racc/parser.rb:27: warning: already initialized constant Racc_Runtime_Version Here is some info about my setup: oracle@z3:/pt/b/puppet$ oracle@z3:/pt/b/puppet$ ruby -v ruby 1.9.2p318 (2012-02-14 revision 34678) [x86_64-linux] oracle@z3:/pt/b/puppet$ oracle@z3:/pt/b/puppet$
2009 Jan 29
0
How to get rid of an ActiveRecord warning "already initialized constant"
I need to get a proxy class for a specific AR validation I reuse a piece of code (from Globalize), where it''s set as a constant : module Globalize module Model module ActiveRecord class << self def create_proxy_class(klass) Object.const_set "#{klass.name}Translation", Class.new (::ActiveRecord::Base){..} .. end so in my validation module,
2005 Jun 08
0
warning: already initialized constant problem
Hi, I am getting the following error in WeBrick when using salted login generator: > ./script/../config/..//app/helpers/user_helper.rb:7: warning: already > initialized constant DEFAULT_HEAD_OPTIONS > 127.0.0.1 - - [31/May/2005:18:04:55 PDT] "HEAD /company.html HTTP/1.0" > 200 0 Now, I can easily get around this bug but i wondered how to prevent it from happening.
2005 Sep 19
2
warning: already initialized constant
Hello all. I''m new to Rails and working on replacing an existing Perl based app. Everything has been smooth, and I''m beginning to get the hang of things. I just implemented DB based photo handling, with code directly from the Pragmatic Rails book. Here''s a fresh server log of my app, with a logged in user (by cookie and session) getting a list of his photos. The
2010 Jul 30
0
`load_missing_constant': uninitialized constant Rails::Railt
Hi All, I run rake gems:install rake gems:unpack If i add configure the rspec-rails gem in config/environment.rb: config.gem "rspec-rails", :version => ">= 1.3.2" and then run server. I am getting this error: /home/Amit/Myworkspace/MyApplication/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2. Running rspec on it brings about a large amount of these messages: DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:haml] instead. (called from block (2 levels) in <top (required)> at
2011 Nov 01
1
rake db:migrate aborted
I''m reading the rails tutorial book and in chapter 6 page 199 I have to make a rake db:migrate, but I get this error: rake aborted! undefined method `prerequisites'' for nil:NilClass (See full trace by running task with --trace) When I try with rake db:migrate --trace I get the following errors: rake aborted! undefined method `prerequisites'' for nil:NilClass
2008 Jun 19
1
How to run unit tests for Rails
hi, I downloaded rails as well as unit tests from: http://svn.rubyonrails.org/rails/branches/1-2-stable/ bash-2.03$ cd rails-1.2.6/railties/ bash-2.03$ rake regular_test (in /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties) /u/liangl/ruby/JRUBY103/bin/jruby -w -Ilib:test "/u/liangl/ruby/ JRUBY103/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/ rake_test_loader.rb"
2006 Feb 07
3
Problems with flickr gem: already initialized constant
New to rails so please bear with me. Am having difficulties with the flickr plugin. trying to follow the video as a starter, and keep hitting the following problem when I require ''flickr'' in the environment.rb file testbed:/srv/www/htdocs/carstuff # ruby script/server => Booting WEBrick... /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274: warning:
2009 May 25
2
CAn u please tell wats the prob in runnning my project?
[~/kallori]# rake db:migrate (in /home/gm/kallori) no such file to load -- hmac-sha1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /home/gm/kallori/vendor/rails/activesupport/lib/active_support/ dependencies.rb:510:in `require''
2007 Nov 08
0
error on migration
Hi all, I''m just getting started with rspec. I''m using trunk rspec with edge rails. I get an error on migration though, here it is: rake db:migrate RAILS_ENV="test" --trace (in /home/pat/railsapp) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `failure_message'' for class
2011 Apr 30
1
Could not autoload inventory_active_record: uninitialized constant ActiveRecord
Trying to set up the inventory service on puppet 2.6.8, pretty sure I''ve met all the dependencies but puppetmaster logs Could not autoload inventory_active_record: uninitialized constant ActiveRecord When clients attempt to connect. local gems: *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.7, 2.2.3) actionpack (3.0.7, 2.2.3) activemodel (3.0.7) activerecord (3.0.7)
2013 Dec 24
0
dashed by dashboard
Thoughts? [root@ca-sna-pm01 config]# rake RAILS_ENV=production db:migrate (in /usr/share/puppet-dashboard) NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21. config.gem: Unpacked gem rdoc-3.6.1 in vendor/gems has no
2006 Feb 16
5
Edge Rails, Ruby 1.8.2 and "uninitialized constant ''modelname''" error
I know it might seem like I am repeating myself but I can''t seem to find the solution to my problem. I am trying to run edge rails using "rake freeze_edge" and every time I do that my application stops to work. I get an error on every page. I get a "uninitialized constant modelname" error where modelname is the object being created for that view Has
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn''t parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration'' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>''
2011 Jul 04
2
ruby and rails wont work even they're already installed
mongskie@mongskie-os:~$ gem /usr/bin/gem:4: undefined method `manage_gems'' for Gem:Module (NoMethodError) mongskie@mongskie-os:~$ rails /usr/lib/ruby/1.8/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'' from
2010 Apr 11
10
rake db:create uninitialized constant Mysql::Error
I have yet to find a solution for this issue I have tried multiple things that I have found on google, but yet have i found a solution. If someone could help me and point me in the right direction I would be much appreciated. Thanks. rake aborted! uninitialized constant Mysql::Error ** Invoke db:create (first_time) ** Invoke db:load_config (first_time) ** Invoke rails_env (first_time) **
2007 Nov 18
2
ActiveACL and "already initialized constant OPTIONS"
Hi, I''ve been trying to get ActiveACL to work with my new project, and as the title suggest I''m stuck. I get the following error: /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18: undefined method `options'' for []:Array
2011 Aug 04
4
Problem in migrating a database to Heroku
When trying to migrate a database to `Heroku`, I get the following (Provided that I''m using `gem ''sqlite3'', ''1.3.3''`: $ heroku rake db:migrate (in /app) rake aborted! uninitialized constant Rake::DSL /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing''