similar to: ConnectionNotEstablished when using connection on AR::Base abstract subclass

Displaying 20 results from an estimated 200 matches similar to: "ConnectionNotEstablished when using connection on AR::Base abstract subclass"

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
2011 Dec 01
1
ActiveRecord::ConnectionNotEstablished
Hi All, I am new in ruby on rail. i have successfully Ruby on Rails setup and create application but i have run application in browser everytime display "ActiveRecord::ConnectionNotEstablished " this error . I am using ruby 1.9.3 and below my db connection. # SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem
2011 Mar 25
4
how to solve ActiveRecord::ConnectionNotEstablished
*im using mysql as a database* * * *im getting the error which says that * ActiveRecord::ConnectionNotEstablished in GreetingsController#index ActiveRecord::ConnectionNotEstablished Rails.root: C:/railsdev/hello Application Trace <http://localhost:3000/#> | Framework Trace<http://localhost:3000/#> | Full Trace <http://localhost:3000/#>
2010 Sep 07
3
ActiveRecord::ConnectionNotEstablished error
I''ve attached my database.yml I''ve installed gem install activerecord-sqlserver-adapter But when I navigate to a simple page I get the ActiveRecord::ConnectionNotEstablished error Any ideas what I should be checking? Ruby 1.92 Rails 3 Attachments: http://www.ruby-forum.com/attachment/5016/database.yml -- Posted via http://www.ruby-forum.com/. -- You received this message
2006 May 16
5
rake aborted! ActiveRecord::ConnectionNotEstablished
Hi all I''m just learning to use rake and ran into the following problem: chraftbuech:/Users/Josh/Webwork/CommentingSystem josh$ rake create_test_news (in /Users/Josh/Webwork/CommentingSystem) Create test news rake aborted! ActiveRecord::ConnectionNotEstablished The task''s code is: desc ''Creates some test news items with comments'' task
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 19
2
SimplyRestful bug?
Hi I have my routes set up like this: map.resource :contact, :path_prefix => "/employers/:employer_id" so now when I view all contacts for an employer I go to: /employers/1/contacts That works. On that page, there''s a problem with the routes: new_contact_url translates to: /employers/1/contacts/new ... so that works. But, contact_url(@contact) gives me
2011 Oct 24
9
ActiveRecord::ConnectionNotEstablished
Hello I am rather new to Ruby and have been following along with the book "Ruby On Rails 3 Tutorial - Learn Ruby by Example - by Michael Hartl". I am currently in Chapter 3 which discusses static pages. In this chapter, I entered the following command into the prompt: "rails generate controller Pages home contact" and everything worked fine. Then the book directs me to
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a ActiveRecord::ConnectionNotEstablished when I try to run it on lighttpd. Here''s the app''s lighttpd config: $HTTP["host"] =~ "(www\.)?mysite\.com" { server.document-root = "/home/pergesuteore/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => (
2012 Feb 26
15
ActiveRecord::ConnectionNotEstablished
Hi, I am trying the tutorial in: http://guides.rubyonrails.org/getting_started.html when I try to navigate to http://localhost:3000 after the 4.3 change I get the error : ActiveRecord::ConnectionNotEstablished and I don''t know how to solve it the database.yml file is: adapter => mysql host => 127.0.0.1 database => blog username => root password => ***** my
2016 Apr 18
0
FW: Domain member seems to work, wbinfo -u not (update4)
On 18/04/16 12:52, L.P.H. van Belle wrote: > Ok. I've done the following, any samba dev, please read below. > > Looks to me some bug in librpc/ndr/ndr.c > > But im not a coder.. so please have a look. > > > > > > Environment. > > Debian Jessie, samba 4.2.10 (debian) > > > > I remove my proxy2 server from the domain, cleared up the AD.
2016 Apr 18
3
FW: Domain member seems to work, wbinfo -u not (update4)
Ok. I've done the following, any samba dev, please read below. Looks to me some bug in librpc/ndr/ndr.c But im not a coder.. so please have a look.     Environment. Debian Jessie, samba 4.2.10 (debian)   I remove my proxy2 server from the domain, cleared up the AD. Removed all content from /var/(lib/cache)/samba Removed all other unnneeded services for this test. Removed all
2005 Dec 21
6
Rails without a db - how to run tests
I''m writing a simple app that doesn''t need to use a database. I added :active_record to the config.frameworks -= line in environment.rb file. This lets me run ./script/generate fine without complaining about no connection. However if I try to run a functional test, it complains about no connection being established. Well...I don''t want a connection to be established.
2010 Jun 15
2
ActiveRecordConnection from jobs script
Hi, I make a cron jobs and I would like to use ActiveRecord. but I have this error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished) Do I have to require
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
Hey guys, Started running unicorn in a production server like two weeks ago. It''s been running smoothly, but looking at the logs found 44 exceptions like this: E, [2010-06-02T16:17:15.117071 #22680] ERROR -- : Read error: #<TypeError: can''t modify frozen string> E, [2010-06-02T16:17:15.117270 #22680] ERROR -- :
2006 Jul 17
14
REST Relationship Models
I''m trying to figure out an elegant way to do this: I have the following three tables: people, employer, employees And consequently the following three models: class Person < ActiveRecord::Base end class Employer < ActiveRecord::Base has_many :employees end class Employee < ActiveRecord::Base belongs_to :person belongs_to :employer end I want to be able to say:
2010 Jan 03
24
SQLServer on Rails
Does any one know how to setup SQLserver with ruby1.9. It was working on an earlier version and now nothing works! I have installed the gems dbi ,dbd-odbc and activerecord-odbc-adapter and can connect in straight Ruby. However, using rails with database.yml nothing works! I hosed everything and reinstalled rails and now, I get Win32/Parite virus on ruby.exe. Any ideas? I''m losing
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
I''m running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. I need to back down rails to 3.1.0 for a project but when I do that a simple index page give me a ActiveRecord::ConnectionNotEstablished error. Rails 3.2.3 works, 3.1.0 not. Any ideas? Just to show you it''s nothing fancy.... Gem file is only: source ''https://rubygems.org'' gem
2012 Nov 03
0
ids writer fields for HABTM relationship.
Hello forum readers, Let''s say i have two models: Person and Role (i replicated the problem with Post & Tag as well, as i thought the problem was linked to some application-specific rights problem, but it wasn''t). In Person, attr_accessible role_ids is declared, so it accepts an array of Role ids as an argument when creating / updating. If i fire up the rails console and
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