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 Shnelvar
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
Well you could just define a sqlite database in your database.yml file
and then just ignore everything
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe
On 22 December 2011 10:10, Ralph Shnelvar li...@ruby-forum.com 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
In config/application.rb comment require active_record/railtie line
# Pick the frameworks you want:
# require active_record/railtie
require action_controller/railtie
require action_mailer/railtie
require active_resource/railtie
require sprockets/railtie
# require rails/test_unit/railtie
Gautam
when creating a new app just use -O or --skip-activerecord
rails new myApp -O
or
rails new myApp --skip-activerecord
Gautam Pai
On Thu, Dec 22, 2011 at 11:03 PM, Gomzi Pai gomzi@gmail.com wrote:
In config/application.rb comment require active_record/railtie line
# Pick the frameworks
5 matches
Mail list logo