ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Thanks for your tutorials! 🎉
Your tutorials are really helpful, love your work.
This has been so helpful to watch! Thanks! :)
You're so welcome!
Thank you so much. very useful
Awesome tutorial!!!!! 🚀🚀🚀
So useful! thank you very much!
Is I assign a role to a person invited by user.Example: we assign a role of teacher or student to invited person . How we implement that ?
smth like this in user.rb:after_create :assign_after_invite_role, if: self.created_by_invite?def assign_after_invite_role self.add_role(:student)end
I want to send invitation mail to multiple receipents by passing the emails as comma separated ..could you please help me with this
User.all.pluck(:email)
how can we send user invitation as different roles like teacher and student the one you given below to that guy is giving error
I suggest first sending an invitation (and simultaneously creating the user), and then separate assing the user a role
you can also have a default role
@@SupeRails ok thank you, love you ,no homo xd
Very well explained 👏
What will happen if two different users try to invite the same person?
That's something you would want to try by hand :)Smth like: >
Nice episode , KEPP IT UP
Thanks for your tutorials! 🎉
Your tutorials are really helpful, love your work.
This has been so helpful to watch! Thanks! :)
You're so welcome!
Thank you so much. very useful
Awesome tutorial!!!!! 🚀🚀🚀
So useful! thank you very much!
Is I assign a role to a person invited by user.
Example: we assign a role of teacher or student to invited person . How we implement that ?
smth like this in user.rb:
after_create :assign_after_invite_role, if: self.created_by_invite?
def assign_after_invite_role
self.add_role(:student)
end
I want to send invitation mail to multiple receipents by passing the emails as comma separated ..could you please help me with this
User.all.pluck(:email)
how can we send user invitation as different roles like teacher and student the one you given below to that guy is giving error
I suggest first sending an invitation (and simultaneously creating the user), and then separate assing the user a role
you can also have a default role
@@SupeRails ok thank you, love you ,no homo xd
Very well explained 👏
What will happen if two different users try to invite the same person?
That's something you would want to try by hand :)
Smth like: >
Nice episode , KEPP IT UP