If you, like me, have found that Rails 2.3.8 breaks the Internet Explorer detection in ActiveScaffolds active_scaffold_includes, here’s a quick fix for ya :)

In vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helpers.rb change the active_scaffold_includes method to read the following:

      # easy way to include ActiveScaffold assets
      def active_scaffold_includes(*args)
        frontend = args.first.is_a?(Symbol) ? args.shift : :default
        options = args.first.is_a?(Hash) ? args.shift : {}
        js = javascript_include_tag(*active_scaffold_javascripts(frontend).push(options))

        css = stylesheet_link_tag(*active_scaffold_stylesheets(frontend).push(options))
        
        ie_css = stylesheet_link_tag(*active_scaffold_ie_stylesheets(frontend).push(options))
        ie = ie_css + "\n" if request.env['HTTP_USER_AGENT'] =~ /MSIE/
        
        js + "\n" + css + "\n" + ie
      end

Advertisement