Ruby on Rails Thursday, December 22, 2011


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 <clanlaw@googlemail.com> wrote:
On 22 December 2011 10:10, Ralph Shnelvar <lists@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 --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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment