When to use manage_relationship, and when to just call action directly?

I think using manage_relationship is pretty hard.
And just calling action directly is easy, but then handling error would be hard.
Is there any rule when to use manage_relationship or not?

You can do everything manage_relationship does using before/after_actions I wouldn’t say one is necessarily better than the other.

manage_relationship can do many things and can, therefore, be a bit hard to understand with all the possible options.

I wouldn’t say there is a rule on when to use which. I would go with what feels more natural.
In the long run, I think it would be useful to learn more about manage_relattionship as it requires much less custom code.

2 Likes