Displaying 18 results from an estimated 18 matches for "adapternotspecifi".
Did you mean:
adapternotspecified
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
...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 (ActiveRecord::AdapterNotSpecified)
I''m using unicorn (4.3.1), sinatra (1.3.2), activerecord (3.2.6), ruby 1.9.3p194
The app (test.rb):
require ''rubygems''
require ''sinatra''
require ''active_record''
ActiveRecord::Base.establish_conne...
2006 Jan 14
1
(ActiveRecord::AdapterNotSpecified) Error
...ng 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 (ActiveRecord::AdapterNotSpecified)
I am using the following database.yml file (passwords replaced with *):
development:
adapter: mysql
host: localhost
database: depot_development
username: root
password: ********
test:
adapter: mysql
host: localhost
database: depot_test
username: root
password: ****
production:
ad...
2006 Aug 13
1
establish_connection method
...#39;'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)
when ConnectionSpecification
clear_active_connection_name
@active_connection_name = name
@@defined_connections[name] = spec
when Symbol, String
if configuration = configurat...
2005 Dec 22
0
Getting AdapterNotSpecified on simple script/generate
...lite3/driver/#{d.downcase}/driver"
$ ./script/generate model Activity
/usr/local/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
(ActiveRecord::AdapterNotSpecified)
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:66:in
`establish_connection''
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:169:in
`initialize_database'...
2006 Jan 14
5
New problem with Mac OS X + rails + mysql. Please help!
All,
I am working through the ''depot'' sample application from the
"Pragmatic Programmers" book on my
powerbook. I was going through the install process on
http://hivelogic.com/articles/2005/12/01/
ruby_rails_lighttpd_mysql_tiger and it seemed to work fine.
But when I try to create the first table, I get the following error,
and I have no idea what this means.
Any
2006 Apr 12
5
Rails talking to MySql (cygwin on Windows XP)
...g more.
3) So I try: ruby script/generate and the following error (a snippet
without the rest of the trace) comes up:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_ada
pters/abstract/connection_specification.rb:194:in
`establish_connection'':ActiveR
ecord::AdapterNotSpecified: adapter:mysql database:test username:root
password:admin host:localhost database is not configured
4) OK, so I search on combinations of keywords here. Nothing turns up.
OK, so I am on my own. Many posts related to "MySQL, Windows" sugguests
that one "gem install mysql"...
2006 Sep 15
2
unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb
...beta-demo_091506 #
script/backgroundrb/start --config-file config/backgroundrb.yml
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in
`establish_connection'': development database is not configured
(ActiveRecord::AdapterNotSpecified)
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:185:in
`establish_connection''
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:182:in
`initialize_database''
fro...
2006 Aug 01
7
MySQL binding problem on Max OS X 10.4
...he WEBrick server I get the following error:
Establishing DB
connection../usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in
`establish_connection'': development database is not configured
(ActiveRecord::AdapterNotSpecified)
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:185:in
`establish_connection''
from ./script/../config/../config/environment.rb:16
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initialize...
2007 Apr 23
0
Using mapped database connections
...elopment
mode to production mode. After that all I was getting was errors when
attempting to connect to the backgroundrb server. I checked the
backgroundrb_server.log file and noticed the following exception
20070423-10:30:00 (29673) development database is not configured -
(ActiveRecord::AdapterNotSpecified)
In my database.yml file I have the production database setup as
production:
development
to map the production database back to the development one.
Unfortunately BackgrounDRb::Worker::RailsBase doesn''t know how to
handle these types of database references. I also had a quick...
2006 Jun 16
0
Mysql: establish_connection''...development database not conf
...er 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
`establish_connection'':ActiveRecord::AdapterNotSpecified: development
database is not configured
database.yml:
development:
adapter: mysql
database: polydis_todolistdev
username: polydis_polydis
password: ******
host: localhost
test:
adapter: mysql
database: polydis_todolisttest
username: polydis_polydis
password: ******
host: localhost
production...
2004 Dec 24
1
Tutorial Steps Two & Three
...age:
C:\Inetpub\wwwroot\rails>ruby script/generate controller Friends list display ne
w edit
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.3.0/lib/active_record/connection_a
dapters/abstract_adapter.rb:89:in `establish_connection'': development database i
s not configured (ActiveRecord::AdapterNotSpecified)
from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.3.0/lib/active_record
/connection_adapters/abstract_adapter.rb:82:in `establish_connection''
from ./script/../config/environment.rb:37
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r
equir...
2005 Oct 27
0
Re: Skipping framework in new initializer doesn't skip framework - IGNORE
...blish connection should ever happen. Behold:
>
> script/server
> /usr/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:52:in
> `establish_connection'': development database is not configured
> (ActiveRecord::AdapterNotSpecified)
> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in
> `establish_connection''
>
>
> (Aside: If you''re wondering why I''m trying to suppress loading of
> active_r...
2005 Oct 27
0
Skipping framework in new initializer doesn't skip framework
...ch means no
call to establish connection should ever happen. Behold:
script/server
/usr/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:52:in
`establish_connection'': development database is not configured
(ActiveRecord::AdapterNotSpecified)
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in
`establish_connection''
(Aside: If you''re wondering why I''m trying to suppress loading of
active_record, it''s because...
2006 Mar 23
4
Postgresql connection problems
...ript/generate scaffold Product Admin
produces
--------------error--------------
/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
(ActiveRecord::AdapterNotSpecified)
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:66:in
`establish_connection''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:169:in
`initialize_database''...
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...nil)
+ # If no adapter is found, try to devine it from the config.
+ # This was moved here from establish_connection since it''s now
+ # useful in other places.
+ if adapter_method.nil?
+ config = config.symbolize_keys
+ unless config.key?(:adapter) then raise AdapterNotSpecified, "database configuration does not specify adapter" end
+ adapter_method = "#{config[:adapter]}_connection"
+ unless ActiveRecord::Base.respond_to?(adapter_method) then
+ raise AdapterNotFound, "database configuration specifies nonexistent #{con...
2012 Jul 17
6
Database connection parameters are tied to the filesystem
HI Guys,
I recently tried VERY hard to override the database configuration bassed on
ENV vars or actual API calls. This task is almost next to impossible.
I know that the database.yml file is parsed as ERB but that is sane for
simple ENV replacement if you want to actually change which database
adaptor it is (requires extra config/params) it becomes messy.
I found
2006 May 02
17
Tests just deleted my production Database!!! PLEASE HELP
Running the functional tests has deleted the data in my production
database!!! please help!! Using rails 1.1.1 + Oracle.
This is my database.yml file :
development:
adapter: oci
host: "V2:1521/TIM"
username: salt
password: oracle1
test:
adapter: oci
host: "V2:1521/TIM"
username: rectest
password: oracletest
production:
adapter: oci
host:
2006 Jul 24
18
difference between running unabridged
22 sudo mv camping.rb camping-abridged.rb
23 sudo mv camping-unabridged.rb camping.rb
when running into problems, the abridged version of camping is rather
difficult to debug.
so I''m moving to unabridged, but I''m getting this error.
[Mon Jul 24 15:50:18 2006] [error] [client 192.168.11.100]