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 Pai On Thu, Dec 22, 2011 at 4:07 PM, Colin Law <[email protected]> wrote: > On 22 December 2011 10:10, Ralph Shnelvar <[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 > > http://stackoverflow.com/questions/2212709/remove-activerecord-in-rails-3-beta > for how to remove activerecord, though I have not tried this myself. > > Colin > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

