Rails3.1でRDBMS(active_record)を使わない場合

application.rbのrails/allを読み込んでいるところを修正します。

#require 'rails/all'
%w(
  action_controller
  action_mailer
  active_resource
  rails/test_unit
  sprockets
).each do |framework|
  begin
    require "#{framework}/railtie"
  rescue LoadError
  end
end


active_recordを外しますが、
Rails3.1からsprocketsが追加になっているので注意(3.0までは無かった)
これが無いとassets pipelineが動いてくれません