similar to: Re: Skipping framework in new initializer doesn't skip framework - IGNORE

Displaying 20 results from an estimated 3000 matches similar to: "Re: Skipping framework in new initializer doesn't skip framework - IGNORE"

2005 Oct 27
0
Skipping framework in new initializer doesn't skip framework
Hi, rails-0.14.2/lib/initializer.rb states: # This initialization routine does nothing unless <tt>:active_record</tt> # is one of the frameworks to load (Configuration#frameworks). If it is, # this sets the database configuration from Configuration#database_configuration # and then establishes the connection. def initialize_database # code end In
2005 Dec 22
0
Getting AdapterNotSpecified on simple script/generate
So even after installing the sqlite3-ruby gem without issues, I still get this error when I try to generate a model... Attempting local installation of ''sqlite3-ruby'' Local gem file not found: sqlite3-ruby*.gem Attempting remote installation of ''sqlite3-ruby'' Select which gem to install for your platform (powerpc-darwin8.3.0) 1. sqlite3-ruby 1.1.0 (mswin32)
2006 Sep 15
2
unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb
i ran rake backgroundrb:setup and modified the default config/backgroundrb.yml file as: --- port: "22223" timer_sleep: 60 load_rails: true environment: production host: localhost database_yml: config/database.yml acl: deny: all allow: localhost 127.0.0.1 order: deny,allow and my database.yml production: adapter: mysql database: chip2_production username: xxxxx password:
2006 Mar 23
4
Postgresql connection problems
Forgive me for asking a trivial question on this list, but being new to Ruby/Ruby on Rails, I''m not sure where to start.... I''m trying to connect to a postgresql server: My database.yml contains: test_test: adapter: postgresql database: test_test username: testuser password: resutest host: testpgserver port: 5432 encoding: UTF8 min_messages: warning The
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all, I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record, In my unciron.rb file I''m using preload_app true after_fork do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified
2006 Aug 13
1
establish_connection method
I''m digging into rails source code. But I''ve got a problem in undestading actionrecord::base source code which is connection_specification.rb. In the body of establish_connection method, def self.establish_connection(spec = nil) case spec when nil raise AdapterNotSpecified unless defined? RAILS_ENV establish_connection(RAILS_ENV)
2012 Mar 02
0
ConnectionNotEstablished when using connection on AR::Base abstract subclass
I''m using AR outside of Rails and calling establish_connection on an ActiveRecord::Base abstract_class subclass (to protect my connection in case anyone else is using AR). It was working just fine with AR 3.0.9, but I recently attempted to upgrade to AR 3.2.2. Now, when I hit a "nested" query from a has_many, I get a ActiveRecord::ConnectionNotEstablished. If I call
2009 May 06
0
OCI Library Initialization Error
I am attempting to connect to ORACLE11g however i am getting the following error: "OCI Library Initialization Error" IT always errors on OCIENV.init(). I cant see anything wrong on the ENV configurations. Has anyone had this problem, or any suggestions on where i should look for anwers? I am using the following gems: ruby-oci8 (1.0.4) activerecord-oracle-adapter (1.0.0.9250)
2006 Jan 14
1
(ActiveRecord::AdapterNotSpecified) Error
All, I am on Mac OS X 10.4, went through all the installation steps for mysql and ruby on rails. Now, I am getting this error when trying to start webrick or when trying to create the tables: /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:73:in `establish_connection'': development database is not configured
2012 Feb 06
0
Error ActiveRecord::ConnectionNotEstablished
Hello, this morning I was trying to access my app on my computer, but, when I initialize the server and access localhost:3000, this message shows up: ActiveRecord::ConnectionNotEstablished So, I try to access via rails console, but again, another error: felipe@Felipe:~/rails_projects/simple_cms$ rails console
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
Skipped content of type multipart/alternative-------------- next part -------------- Index: connection_adapters/abstract/connection_specification.rb =================================================================== --- connection_adapters/abstract/connection_specification.rb (revision 4617) +++ connection_adapters/abstract/connection_specification.rb (working copy) @@ -1,10 +1,21 @@ require
2006 Jun 16
0
Mysql: establish_connection''...development database not conf
I have tried for several hour to get a mysql db connection to work, but have failed so far: This is a cpanel server running Mysql 4.1.19, fcgi with apache. Here is the output from script/console Loading development environment. /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in
2005 Oct 28
0
beginner's problem after changing the database configuration file
Hi guys, i am getting this error after I changed my database configuration file. After doing so, I cannot start my webserver, generate new files, etc. Can anyone tell me how to solve this, and why is it doing what it is doing? c:/ruby/lib/ruby/1.8/yaml.rb:119:in `load'': parse error on line 22, col 11: `'' ( ArgumentError) from c:/ruby/lib/ruby/1.8/yaml.rb:119:in `load''
2006 Aug 01
7
MySQL binding problem on Max OS X 10.4
Hi all. No matter what I do I can''t get rails to see my MySQL database. All details are below. I really appreciate any assistance. Thanks!!! DETAILS ------- 1. I''m using Rails 1.1.4 with Ruby 1.8.4 on Mac OS X 10.4.7. I have installed the MySQL bindings following the instructions here:
2010 Jan 07
1
Active Record Error
I''ve had to download an existing Rails project and I''m attempting to setup locally. I''ve installed all the 2.1.1 rails gems needed by the project as the existing site is at that version. My platform is Netbeans 6.8 on Windows Vista for development and prod is on linux. I''ve been able to setup test and other sites using the latetest version of rails but cant seem
2006 Jun 08
2
Am i missing a library?
[xxxxx@fedora test]$ script/generate model contact /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 17, col 2: ` host: localhost'' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load'' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in `database_configuration'' from
2006 Jul 06
0
Can''t generate AR from script (ActiveRecord::ConnectionNotEstablished)
Generating ActiveRecord instances from the console works fine. ./script/console Loading development environment. >> Pim.new() => #<Pim:0xb74427dc @attributes={"vpimitem"=>nil}, @new_record=true> >> But running this little script: #!/usr/bin/env ruby require File.dirname(__FILE__) + ''/../config/boot'' Pim.new() Will spit out
2006 Apr 12
5
Rails talking to MySql (cygwin on Windows XP)
Hello fellow RoR users, I am a newbie and I thought RoR is so easy to set up and that I would be saving so much time -- but I am still waiting to save time because I simply couldn''t get Ruby/Rails to talk to MySQL (5.0.18) at all. Here are the steps that I have examined: 1) I look at dabatbase.yml and put in the right information to talk to the database I have set up (the
2009 Aug 14
1
starting up server
I am working on an existing application and the first time I try and start up the server I get this message. I have not gotten this message before when I start the server on other apps. ruby script/ server. There must be things I need to change in the config. There is a load statement in yaml.rb but not sure of the context as it relates to argument. Is the error related to the current
2009 Jul 17
1
Mongrel Server error - newbie question.
Dear All, I am very new to RoR. I have got the following error after Chnaging mysql database.yml and restart the Server. - rails employee rails -d mysql employee and insert Username & Password in the database.yml and I restart the server. - => Booting Mongrel => Rails 2.3.2 application starting on http://0.0.0.0:3000 /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax