Displaying 6 results from an estimated 6 matches for "adapternotfound".
2006 Aug 13
1
establish_connection method
...else
spec = spec.symbolize_keys
unless spec.key?(:adapter) then raise AdapterNotSpecified,
"database configuration does not specify adapter" end
adapter_method = "#{spec[:adapter]}_connection"
unless respond_to?(adapter_method) then raise AdapterNotFound,
"database configuration specifies nonexistent #{spec[:adapter]} adapter"
end
remove_connection
establish_connection(ConnectionSpecification.new(spec,
adapter_method))
end
end
there is case statement.
when spec is ConnectionSpecification, @active_connecti...
2007 Jul 23
2
Firebird, fireruby
...te a script which will connect to his
database, fetch some data and update few tables in MS-SQL database.
Now problem is: i have installed FireRuby, got databaes, changed my
database.yml file.
I am trying to display all the users in Members table. but i am
getting following error:
ActiveRecord::AdapterNotFound in UsersController#index
The Firebird adapter requires FireRuby version 0.4.0 or greater; you
appear to be running an older version -- please update FireRuby (gem
install fireruby).
RAILS_ROOT: C:/rails/cprc/config/..
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gem...
2006 Mar 16
3
Connecting to Oracle8i
...one-click ruby installer (ruby184-16p3 windows.exe)
2. i installed the rails-1.0.0 framework using gem successfully
3. i tried connecting to oracle using all possible combination in the
database.yml file (in the DATABASE and the HOST entry) but failed with
the nonexistent oci adapter (ActiveRecord::AdapterNotFound)
exception, for example :
- blank in DATABASE, full tns name entry in HOST, and vice versa
- blank in HOST, sid name entry in DATABASE, and vice versa
- both field with full tns name
- both field with only sid name
4. so i tried re-installing only the activerecord (1.13.2) using gem and
also the l...
2006 Apr 20
1
Unable to connect to postgres on Fedora Core 5
...l
I get a long stack trace which has this at the start:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:200:in
`establish_connection'': database configuration specifies nonexistent
postgres adapter (ActiveRecord::AdapterNotFound)
What am I doing wrong?
--
Martin Tomes
echo ''martin at tomes x org x uk''\
| sed -e ''s/ x /\./g'' -e ''s/ at /@/''
Visit http://www.subversionary.org/
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 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...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 #{config[:adapter]} adapter" end
+ end
@config, @adapter_method = config, adapter_method
end
end
@@ -20,6 +31,16 @@
# The class -> thread id -> adapter cache. (class -> adapter if not allow_concurrency)...