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

fixes typo @customer -> customer

This commit is contained in:
Xavier Noria 2009-02-27 23:36:05 +01:00
parent 69ad155c90
commit d4128cff22

View file

@ -822,7 +822,7 @@ Every partial also has a local variable with the same name as the partial (minus
<%= render :partial => "customer", :object => @new_customer %>
</erb>
Within the +customer+ partial, the +@customer+ variable will refer to +@new_customer+ from the parent view.
Within the +customer+ partial, the +customer+ variable will refer to +@new_customer+ from the parent view.
WARNING: In previous versions of Rails, the default local variable would look for an instance variable with the same name as the partial in the parent. This behavior is deprecated in Rails 2.2 and will be removed in a future version.