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 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, Jun 3, 2008 at 1:42 PM, John T. <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > > 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?It was enabled by default in Active Record just before 2.1 launch. Check ActiveRecord::Base.partial_updates in script/console to verify. jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- [PATCH] Upgrading the server to work with Rails 2.3.4.
- Undefined method `store_full_sti_class=' for ActiveRecord::Base:Class (NoMethodError)
- Deploying Error: undefined method 'generate_best_match='
- partial_updates feature in rails 2.1, failing to save because of validate_presence _of on other attributes in the table
- Isn't there any performance issue when saving serialized attributes every time?