Answer the question
In order to leave comments, you need to log in
How to execute a couple of queries in ActiveRecord after submitting the form?
Will this work?
Logs = Logs.new(log_params)
Users.find(current_user.id).update(money: Users.find(current_user.id)['money'] - params[:money]) // and so on
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question