Skip to content

Instantly share code, notes, and snippets.

@maclover7
Created December 16, 2014 00:33
Show Gist options
  • Save maclover7/66ea65a9390c9f25521d to your computer and use it in GitHub Desktop.
Save maclover7/66ea65a9390c9f25521d to your computer and use it in GitHub Desktop.
# PATCH/PUT /profiles/1
# PATCH/PUT /profiles/1.json
def update
respond_to do |format|
if @profile.update(profile)
format.html { redirect_to @profile, notice: 'Profile was successfully updated.' }
else
format.html { render :edit }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment