def update
    @role = environment.roles.find(params[:id])
    if @role.update(params[:role])
      redirect_to action: "show", id: @role
    else