Permalink
Browse files

fixes undefined method keys for nil:NilClass error while generating g…

…uides
  • Loading branch information...
1 parent acd5395 commit 836b7787f593cd4283d22d9cd1c5c575c8bd8e97 @fxn fxn committed Sep 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
View
2 railties/guides/rails_guides/generator.rb
@@ -55,7 +55,7 @@ def generate_guide(guide)
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

0 comments on commit 836b778

Please sign in to comment.