1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fixes undefined method keys for nil:NilClass error while generating guides

This commit is contained in:
Xavier Noria 2009-09-02 18:35:28 +02:00
parent acd5395877
commit 836b7787f5

View file

@ -55,7 +55,7 @@ module RailsGuides
body = set_header_section(body, @view)
body = set_index(body, @view)
result = view.render(:layout => 'layout', :text => textile(body))
result = view.render(:layout => 'layout', :text => textile(body), :locals => {})
f.write result
warn_about_broken_links(result) if ENV.key?("WARN_BROKEN_LINKS")
end