diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 16:20:04 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 16:20:04 -0800 |
commit | 13c9195b12e2a6c87056d24968f092ba97e14364 (patch) | |
tree | 8e69f1a82c2d1707b28209fe07c9e118215e562b /actionpack/lib/action_dispatch | |
parent | 33310fbf8f387e450e1ccc29ccf95a149c3d3e29 (diff) | |
download | rails-13c9195b12e2a6c87056d24968f092ba97e14364.tar.gz rails-13c9195b12e2a6c87056d24968f092ba97e14364.tar.bz2 rails-13c9195b12e2a6c87056d24968f092ba97e14364.zip |
use strip_heredoc to keep indentation consistent.
Thanks @sikachu. :heart:
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/inspector.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb index d55c73269c..9ac8f97b74 100644 --- a/actionpack/lib/action_dispatch/routing/inspector.rb +++ b/actionpack/lib/action_dispatch/routing/inspector.rb @@ -167,13 +167,13 @@ module ActionDispatch end def no_routes - @buffer << <<-MESSAGE -You don't have any routes defined! + @buffer << <<-MESSAGE.strip_heredoc + You don't have any routes defined! -Please add some routes in config/routes.rb. + Please add some routes in config/routes.rb. -For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html . -MESSAGE + For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html . + MESSAGE end private @@ -213,13 +213,13 @@ MESSAGE end def no_routes - @buffer << <<-MESSAGE -<p>You don't have any routes defined!</p> -<ul> -<li>Please add some routes in config/routes.rb.</li> -<li>For more information about routes, please <a href="http://guides.rubyonrails.org/routing.html">see the Rails Guide</a>.</li> -</ul> -MESSAGE + @buffer << <<-MESSAGE.strip_heredoc + <p>You don't have any routes defined!</p> + <ul> + <li>Please add some routes in config/routes.rb.</li> + <li>For more information about routes, please <a href="http://guides.rubyonrails.org/routing.html">see the Rails Guide</a>.</li> + </ul> + MESSAGE end def result |