Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use strip_heredoc to keep indentation consistent.

Thanks @sikachu. :heart:
  • Loading branch information...
commit 13c9195b12e2a6c87056d24968f092ba97e14364 1 parent 33310fb
@steveklabnik steveklabnik authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 actionpack/lib/action_dispatch/routing/inspector.rb
View
24 actionpack/lib/action_dispatch/routing/inspector.rb
@@ -167,13 +167,13 @@ def header(routes)
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 @@ def section(routes)
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

2 comments on commit 13c9195

@steveklabnik
Collaborator

Looks like @carlosantoniodasilva saved me: f994530

Please sign in to comment.
Something went wrong with that request. Please try again.