similar to: Mysql: establish_connection''...development database not conf

Displaying 20 results from an estimated 100 matches similar to: "Mysql: establish_connection''...development database not conf"

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 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
2020 Oct 21
2
Understanding matches in sieve
RFC 5229 gives the following example: if address :matches ["To", "Cc"] ["coyote@**.com", "wile@**.com"] { # ${0} is the matching address # ${1} is always the empty string # ${2} is part of the domain name ("ACME.Example") fileinto "INBOX.business.${2}"; stop; And I do not understand
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
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)
2005 Aug 08
1
howto let the stream not passing asterisk
We need to configure asterisk to authenticate two sip ATAs, but the stream must go directly from one to another ata without tuching asterisk. Is this possible adding canreinvite=yes into sip.conf? is it true laso if asterisk doesn't recognize the spd (t38)? thanks Rosario -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Oct 22
0
Understanding matches in sieve
On 10/21/20 11:15 AM, @lbutlr wrote: > RFC 5229 gives the following example: > > if address :matches ["To", "Cc"] ["coyote@**.com", > "wile@**.com"] { > # ${0} is the matching address > # ${1} is always the empty string > # ${2} is part of the domain name ("ACME.Example") >
2004 Aug 06
0
time out and buffering issues
I've upgraded a couple servers to the latest icescast2 and ices2 sources. Everything works well with relaying. However, I am getting some reports that after about 50 minutes the stream on the relay machine dies and people are unable to connect again using Winamp-2.91. They have to close up and restart Winamp. I am thinking this may be a problem with the tree separate audio streams I am
2004 Aug 15
2
consultative transfer with zaptel
Ist there any possibility to use the funktion "consultative transfer"? ( have 2 ISDN-pones attached to the hfc-nt card, configured as zap) With the "#"-key it ist possible to park the call or to make a "blind transfer" at the moment. I have activated threewaycalling in the zapata.conf file: ; internal S0 bus (first hfc/s card): context=local signalling =
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:
2007 Apr 23
0
Using mapped database connections
This morning I switched over my backgroundrb server from development 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
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
2004 Dec 24
1
Tutorial Steps Two & Three
Hey- I ran into to some problems when trying to follow "A tutorial by Rails'' users." When I reached Step Three and executed the controller script as follows: ruby script/generate controller Friends list display new edit I got this error message: C:\Inetpub\wwwroot\rails>ruby script/generate controller Friends list display ne w edit
2005 Oct 27
0
Re: Skipping framework in new initializer doesn't skip framework - IGNORE
Please ignore. Sorry for the garbage on the list. I had accidently pasted this at the bottom of environment.rb ActiveRecord::Base.establish_connection ouch... jh On 10/27/05, James Hughes <hughes.james-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > rails-0.14.2/lib/initializer.rb states: > > # This initialization routine does nothing unless
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
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
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:
2007 Jul 19
0
locomotive and establish_connection
I am using locomotive for development. My app uses dual databases and hence I have a model that uses a different establish_connection to connect to the db. It seems that locomotive does not support this. Am I correct? If so, does anyone have a different approach to achieve this? thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed
2011 Jul 19
2
ActiveRecord::Base.establish_connection in development and production envs
Hi, guys! Background: I''ve resque workers in my application. These workers do several jobs that associated with DB. In development environment, I''ve no need to provide some additional configuration for db, they are use development database. But then I switching to production env, I set ActiveRecord::Base.establish_connection with my production DB parameters. Problem: When
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