def create
@members = Member.create_principal_memberships(@principal, params[:membership])
respond_to do |format|
- format.html { redirect_to_principal @principal }
+ format.html {redirect_to_principal @principal}
format.js
end
end
@membership.attributes = params.require(:membership).permit(:role_ids => [])
@membership.save
respond_to do |format|
- format.html { redirect_to_principal @principal }
+ format.html {redirect_to_principal @principal}
format.js
end
end
@membership.destroy
end
respond_to do |format|
- format.html { redirect_to_principal @principal }
+ format.html {redirect_to_principal @principal}
format.js
end
end