I want to call a function after a particular form is submitted in my mobile app. I am calling it as :
after_save :insert_into_my_table, on: :save_playing_request
save_playing_request is the function which saves the new form. I want to call insert_into_my_table after this. Is it the correct way?
Aucun commentaire:
Enregistrer un commentaire