My Rails 3.1 app doesn’t need to talk to any database.
Nonetheless, Rails is attempting to connect to a database and failing.
How do I prevent my app from connecting?
Ralph S.
My Rails 3.1 app doesn’t need to talk to any database.
Nonetheless, Rails is attempting to connect to a database and failing.
How do I prevent my app from connecting?
Ralph S.
Well you could just define a sqlite database in your database.yml file
and then just ignore everything
On 22 December 2011 10:10, Ralph S. [email protected] wrote:
My Rails 3.1 app doesn’t need to talk to any database.
Nonetheless, Rails is attempting to connect to a database and failing.
How do I prevent my app from connecting?
When you create a new app you can use the option --skip-active-record
or -O (they are the same thing, rails -h will show the options).
If you have already created the app then see
for how to remove activerecord, though I have not tried this myself.
Colin
when creating a new app just use -O or --skip-activerecord
rails new myApp -O
or
rails new myApp --skip-activerecord
Gautam P.
In config/application.rb comment require “active_record/railtie” line
require “action_controller/railtie”
require “action_mailer/railtie”
require “active_resource/railtie”
require “sprockets/railtie”
Gautam P.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs