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
Using: - Rails 3.0.3 - Friendly_id 4.0.0 Beta 11 - Windows - i18n (0.6.0, 0.5.0) according to \"gem list\"
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
How could I improve the perfo开发者_如何学Crmance of the following updates ? Post.find(id1).update_attributes(:my_field => value1)
Given: message = Message.find(1) When I do: message.update_attributes(:created_at => ...) I see in the log:
I have a before_save in my Message model defined like this: class Message < ActiveRecord::Base before_save lambda { foo(publisher); bar }
Right now, users can edit some their attributes without having to enter their password because my validations are set up like this:
I have a simple model called Discussion which has a boolean column called resolved. In my form, I have the following code
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:
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: