def update
    @role = Role.find(params[:id])

    respond_to do |format|
      if @role.update_attributes(params[:role])