def partial_with_implicit_local_assignment + @customer = Customer.new("Marcel") + render :partial => "customer" +end +
diff --git a/railties/doc/guides/html/2_2_release_notes.html b/railties/doc/guides/html/2_2_release_notes.html index c00165efb0..199a673a06 100644 --- a/railties/doc/guides/html/2_2_release_notes.html +++ b/railties/doc/guides/html/2_2_release_notes.html @@ -229,6 +229,8 @@ ul#navMain {
Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) @user.account.private_method would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use @user.account.send(:private_method) (or make the method public instead of private or protected). Please note that if you're overriding method_missing, you should also override respond_to to match the behavior in order for associations to function normally.
+Lead Contributor: Adam Milligan +
+@@ -1045,6 +1061,24 @@ Wrapped Rails.env in StringQuestioneer so you can do Rails
+Implicit local assignments when rendering partials has been deprecated. +
+def partial_with_implicit_local_assignment + @customer = Customer.new("Marcel") + render :partial => "customer" +end +
Previously the above code made available a local variable called customer available inside the partial customer. You should explicitly pass all the variables via :locals hash now.
country_select has been removed. See the deprecation page for more information and a plugin replacement.