update-attributes
Thinking sphinx updates delta index even when no fields are updated
Even when no fields specified in update attributes actually changes , thinking sphinx sets delta = 1 which r开发者_Go百科esults in large number of unwanted queries being fired . can we do something to[详细]
2023-04-10 06:04 分类:问答Using Friendly ID and i18n with update_attributes causes overwrite
Using: - Rails 3.0.3 - Friendly_id 4.0.0 Beta 11 - Windows - i18n (0.6.0, 0.5.0) according to \"gem list\"[详细]
2023-04-05 21:04 分类:问答Undefined method update_attributes?
Im trying to allow the user to update the attributes for a single column for multiple elements based on a drop down (with name=\"status) but i keep getting back the error: undefined me开发者_开发百科t[详细]
2023-04-01 14:56 分类:问答How to update "my_field" of N posts in less than N queries?
How could I improve the perfo开发者_如何学Crmance of the following updates ? Post.find(id1).update_attributes(:my_field => value1)[详细]
2023-04-01 12:42 分类:问答Why updating an attribute in model causes to query another table?
Given: message = Message.find(1) When I do: message.update_attributes(:created_at => ...) I see in the log:[详细]
2023-04-01 06:55 分类:问答How to "update_attributes" without executing "before_save"?
I have a before_save in my Message model defined like this: class Message < ActiveRecord::Base before_save lambda { foo(publisher); bar }[详细]
2023-03-31 14:05 分类:问答Updating `User` attributes without requiring password
Right now, users can edit some their attributes without having to enter their password because my validations are set up like this:[详细]
2023-03-28 18:08 分类:问答Rails: update_attributes not updating all attributes
I have a simple model called Discussion which has a boolean column called resolved. In my form, I have the following code[详细]
2023-03-21 17:13 分类:问答How to update attributes on database using Ruby on Rails 2.3.9
I\'m working on a controller action and, what I want to do is to modify a record in the data base. I have the following code:[详细]
2023-03-20 06:18 分类:问答Rails Nested Forms Not Updating
I\'m having a problem getting update_attributes to update nested models in my form. I don\'t have any errors but the nested attributes aren\'t saving. Here\'s the relevant code:[详细]
2023-03-18 09:45 分类:问答