aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2013-07-22 03:25:27 -0700
committerPiotr Sarnacki <drogus@gmail.com>2013-07-22 03:25:27 -0700
commit230d2f84a1877df47d55524e3903fb6d3e4dee75 (patch)
tree418e51fcbeedba2b394aa945b1a8b5d9d5aee379 /railties/lib
parentff3739e6d5da61cf49e4f4a1d281b289f6222f9a (diff)
parentb0caea29c2da9f4c8bb958019813482da297067d (diff)
downloadrails-230d2f84a1877df47d55524e3903fb6d3e4dee75.tar.gz
rails-230d2f84a1877df47d55524e3903fb6d3e4dee75.tar.bz2
rails-230d2f84a1877df47d55524e3903fb6d3e4dee75.zip
Merge pull request #11514 from schneems/schneems/dev-prod-parity-index
Match Dev/Prod parity for Index Page
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application/finisher.rb4
-rw-r--r--railties/lib/rails/templates/rails/welcome/index.html.erb2
2 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb
index 7a1bb1e25c..1e4c6ca921 100644
--- a/railties/lib/rails/application/finisher.rb
+++ b/railties/lib/rails/application/finisher.rb
@@ -25,9 +25,11 @@ module Rails
get '/rails/info/properties' => "rails/info#properties"
get '/rails/info/routes' => "rails/info#routes"
get '/rails/info' => "rails/info#index"
- get '/' => "rails/welcome#index"
end
end
+ app.routes.append do
+ get '/' => "rails/welcome#index"
+ end
end
initializer :build_middleware_stack do
diff --git a/railties/lib/rails/templates/rails/welcome/index.html.erb b/railties/lib/rails/templates/rails/welcome/index.html.erb
index eb620caa00..dd35835c6f 100644
--- a/railties/lib/rails/templates/rails/welcome/index.html.erb
+++ b/railties/lib/rails/templates/rails/welcome/index.html.erb
@@ -227,7 +227,7 @@
<li>
<h2>Set up a root route to replace this page</h2>
- <p>You're seeing this page because you're running in development mode and you haven't set a root route yet.</p>
+ <p>You're seeing this page because you haven't set a root route yet.</p>
<p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
</li>