# Rails 2.1 and default setting of Partial updates

**URL:** <https://www.ruby-forum.com/t/rails-2-1-and-default-setting-of-partial-updates/139437>\
**Category:** Rails\
**Created:** [June 3, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-default-setting-of-partial-updates/139437 "2008-06-03T22:42:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnt519](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Post date:** [June 3, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-default-setting-of-partial-updates/139437/1 "2008-06-03T22:42:23Z")

</div>

I just updated to 2.1 and created a new, empty project. According to the  
docs I’ve seen, including:

[http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-partial-updates](http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-partial-updates)

The file config/initializers/new\_rails\_defaults.rb has the default  
setting for partial updates and just needs to be edited: “Note: Thereâ€™s  
currently a config/initializers/new\_rails\_defaults.rb file that has this  
setting, so edit that file if you have it.”

However, in the new\_rails\_defaults.rb file in my new empty project does  
not have that setting in it (ActiveRecord::Base.partial\_updates = …)

Yeah, I can add it, but I thought it should already be in there?

Thanks,  
jt

---

<div class="post-metadata">

**Author:** ![johnt519](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Post date:** [June 4, 2008, 12:24am UTC](https://www.ruby-forum.com/t/rails-2-1-and-default-setting-of-partial-updates/139437/2 "2008-06-04T00:24:22Z")

</div>

On Tue, Jun 3, 2008 at 1:42 PM, John T.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> However, in the new\_rails\_defaults.rb file in my new empty project does  
> not have that setting in it (ActiveRecord::Base.partial\_updates = …)
> 
> Yeah, I can add it, but I thought it should already be in there?

It was enabled by default in Active Record just before 2.1 launch.

Check ActiveRecord::Base.partial\_updates in script/console to verify.

jeremy
