app/controllers/members_controller.rb
# You must be a community manager to get here.
You must be a community manager to get here.
You must be a community manager to get here .
def update
    respond_to do |format|
      if @member.update_attributes(params[:member])
        format.html { redirect_to(@member, notice:  I18n.t(:updated_member) ) }
        format.xml  { head :ok }
      else
        format.html { render action: "edit" }
        format.xml  { render xml: @member.errors, status: :unprocessable_entity }
      end
    end
  end
def update respond_to do | format | if @member . update_attributes ( params [ :member ] ) format . html { redirect_to ( @member , notice : I18n . t ( :updated_member ) ) } format . xml { head :ok } else format . html { render action : "edit" } format . xml { render xml : @member . errors , status : :unprocessable_entity } end end end
You must be a community manager to get here.
You must be a community manager to get here .