提交 13c9195b 编写于 作者: S Steve Klabnik

use strip_heredoc to keep indentation consistent.

Thanks @sikachu. 
上级 33310fbf
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册