Go back to the main page

Rails mass assignment without persisting

 

user = User.find(1)
user.attributes = { timesheet_attributes: { start: "Tuesday" } }

  • Pushed on 05/08/2013 by Christian