Home » 
        MCQs » 
        Ruby on Rails MCQs
    
        
    ____ uses an UPDATE SQL query to make changes to the attributes directly in the database and sets them in the receiver
    
    
    
	30. ____ uses an UPDATE SQL query to make changes to the attributes directly in the database and sets them in the receiver.
    
      - update_columns(attributes)
 
      - update!(attributes)
 
      - update_column(name, value)
 
      - update_attribute(name, value)
 
    
    Answer: A) update_columns(attributes)
    Explanation:
    update columns(attributes) uses an UPDATE SQL query to make changes to the attributes directly in the database and sets them in the receiver: