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.

Metal apps not being called

#4867

My metal apps are no longer being called in Rails 3 beta 4, when it worked fine in beta 3. To my understanding, Rails loads metal apps first and passes down control when they return an X-Cascade header. To demonstrate:

Allow the metal piece to run in isolation

require File.expand_path('../../../config/environment', FILE) unless defined?(Rails)

class Poller

def self.call(env)

raise "metal!"
....

end

end

class AuctionsController

def index

raise "not metal"
...

end

end

returns "not metal" when in beta 3 it would return metal. Is there a new way to use metal apps?

Reported by Caleb Perkins · June 15th, 2010 @ 08:41 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. ctm
    ctm

    Ticket 4889 appears to be the same issue and has been assigned to wycats by DHH, so that suggests DHH thinks it's a bug. OTOH, railties-3.0.0.beta4/CHANGELOG has:

    *Rails 3.0.0 [beta 4] (June 8th, 2010)*
    
    * Version bump
    * Removed Rails Metal [YK & JV].
    

    so I'm certainly not sure what's going on, and I have a metal app that I'd like to work after upgrading to beta 4.

    June 18th, 2010 @ 05:17 AM

  2. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid

    Metal was removed, you have an explaination of what to do on the commit message.
    http://github.com/rails/rails/commit/ed34652d1aca148fea61c5309c1bd5...

    June 19th, 2010 @ 12:21 AM