def update
    @role = Role.find(params[:id])
    if @role.update_attributes(params[:role])
      redirect_to @role, notice: t("flash.notice.successfully_updated", class: t("roles.role") )
    else