Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

active_support can not be found

#3385

In the latest Rails 3 build currently this error will be thrown:
/vendor/rails/railties/lib/rails/application.rb:81:in rescue in block in <class:Application>': no such file to load -- activesupport (RuntimeError)

This is where the error comes from:

initializer :require_frameworks do

  begin
    require 'active_support'
    require 'active_support/core_ext/kernel/reporting'
    require 'active_support/core_ext/logger'

    # TODO: This is here to make Sam Ruby's tests pass. Needs discussion.
    require 'active_support/core_ext/numeric/bytes'
    config.frameworks.each { |framework| require(framework.to_s) }
  rescue LoadError =&gt; e
    # Re-raise as RuntimeError because Mongrel would swallow LoadError.
    **raise e.to_s**
  end
end</code>



Reported by Joshua Partogi · October 17th, 2009 @ 02:20 AM

State: invalid
Milestone: none
Assigned to: Carl Lerche Carl Lerche
Importance: none

Activity

  1. ender672
    ender672

    The following patch to the arel gem fixes this for me:

    @@@diff From c79d58becb0e8ff039566c58d3b10625e1e028b4 Mon Sep 17 00:00:00 2001
    From: ender672 tle@holymonkey.com
    Date: Sat, 17 Oct 2009 14:57:35 -0700
    Subject: [PATCH] Fix rename of active_support.


    lib/arel.rb | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)

    diff --git a/lib/arel.rb b/lib/arel.rb
    index fcca607..97a5a61 100644
    --- a/lib/arel.rb +++ b/lib/arel.rb @@ -1,7 +1,11 @@ $LOAD_PATH.unshift(File.dirname(FILE))

    require 'rubygems' -require 'activesupport' +begin + require 'activesupport' +rescue LoadError + require 'active_support' +end require 'activerecord' require 'active_record/connection_adapters/abstract/quoting'

    -- 1.6.3.3

    
    

    October 17th, 2009 @ 11:02 PM

  2. ender672
    ender672

    Lighthouse markdown didn't like my code block. Attaching file instead.

    October 17th, 2009 @ 11:04 PM

  3. Joshua Partogi
    Joshua Partogi

    Is the problem on Rails or arel library?

    October 18th, 2009 @ 12:34 PM

  4. Carl Lerche
    Carl Lerche
    • State changed from new to invalid

    You are on an old gem of arel. Currently, arel has to be installed from source. An up to date gem should be released shortly.

    October 18th, 2009 @ 10:43 PM

  5. Joshua Partogi
  6. ender672
    ender672

    Ah, looks like the latest may be the arel fork here:

    http://github.com/miloops/arel/commits/

    October 19th, 2009 @ 06:20 AM

  7. Joshua Partogi
    Joshua Partogi

    Cool, I'll check that out. Thanks.

    October 19th, 2009 @ 06:22 AM