I like the idea of an explicit interface between controller and view, but I'm not quite sold on this particular solution just yet. Especially since the cancan gem already fulfills most of this, and also handles authorization.
Looking at https://github.com/ryanb/cancan/issues/317 it seems this combined solution is already in the works :)
I like the idea of an explicit interface between controller and view, but I'm not quite sold on this particular solution just yet. Especially since the cancan gem already fulfills most of this, and also handles authorization.
Looking at https://github.com/ryanb/cancan/issues/317 it seems this combined solution is already in the works :)