Permalink
Browse files

Tweaked :locals example.

  • Loading branch information...
baldowl committed May 2, 2011
1 parent ab7dfa6 commit 71e520631cbee6f649d6b4fbb2fa31c5bcaf5b2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
@@ -494,7 +494,7 @@ Or, specify an explicit Hash of local variables:
get '/:id' do
foo = Foo.find(params[:id])
- haml '%h1= foo.name', :locals => { :foo => foo }
+ haml '%h1= bar.name', :locals => { :bar => foo }
end
This is typically used when rendering templates as partials from within

0 comments on commit 71e5206

Please sign in to comment.