Created
December 16, 2014 00:33
-
-
Save maclover7/66ea65a9390c9f25521d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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