blog.robotex.de

Rails: routing root to a placeholder without controller

In your Rails.root/config/routes.rb:

Archive::Application.routes.draw do
  .
  .
  .
  root :to => proc { |env| [200, {}, ["Welcome"]] }
end

Back