sibussiso
sibussiso

Reputation: 15

Saving through model

How good is saving from model not from controller ?

Upvotes: 0

Views: 46

Answers (1)

apneadiving
apneadiving

Reputation: 115521

It's great to do that in callbacks.

ex: you create a user who must have a profile=> you add an after_create on the User model.

I'll try to find out some more examples.

Upvotes: 1

Related Questions