--------------code-begin----------------
# Allow the metal piece to run in isolation
require(File.dirname(__FILE__) + "/../../config/environment") unless
defined?(Rails)

class Accelerator
  def self.call(env)
    if env["PATH_INFO"] =~ /^\/accelerator/
      [200, {"Content-Type" => "text/html"}, ["Hello, World!"]]
    else
      [404, {"Content-Type" => "text/html"}, ["Not Found"]]
    end
  end
end
--------------code-end------------------
with the code i can process every request without configure rails
router. how can i  do the same thing in rails3?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to