Implemented cancan and nested posts under type.