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:
parent
69ad155c90
commit
d4128cff22
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue