I am receiving ajax data in a rails controller.
my :updatedFunds
comes in within the params, and I set the users' dollars column value equal to it's value-- but it isnt persisting!
def update_dollars
@user = User.find(params[:user_id])
new_dollars = params[:updatedFunds]
@user.dollars = new_dollars.to_i
#store to database?
end
Whats the last step here?