Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm going by this from reading the source, so let me know if it actually worked. :)</p> <p>The <code>rails</code> command that generates the application template now has an option <code>-O</code>, which tells it to skip ActiveRecord.</p> <p>If you don't feel like rerunning <code>rails</code>, you should check the following in your existing app:</p> <ul> <li><p>Check that your <code>config/application.rb</code> <strong>doesn't</strong> have <code>require 'rails/all'</code> or <code>require "active_record/railtie"</code>. Instead, for a standard Rails setup without ActiveRecord, it should have <strong>only</strong> the following requires:</p> <pre><code>require File.expand_path('../boot', __FILE__) require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" require "sprockets/railtie" # Auto-require default libraries and those for the current Rails environment. Bundler.require :default, Rails.env </code></pre></li> <li><p>If, in <code>config/application.rb</code>, you are using the <code>config.generators</code> section, make sure it doesn't have the line <code>g.orm :active_record</code>. You can set this explicitly to <code>nil</code>, if you want, but this should be the default when <code>g.orm</code> is completely omitted.</p></li> <li><p>Optional, but in your <code>Gemfile</code>, remove the <code>gem</code> line that loads the module for your database. This could be the line <code>gem "mysql"</code> for example.</p></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload