Created
September 2, 2014 00:09
-
-
Save sergiopvilar/e5c38cc9af359bf5218c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def new | |
@cidade = Cidade.new | |
respond_to do |format| | |
flash[:alert] = 'Cidade cadastrada com sucesso' | |
format.html # new.html.erb | |
format.json { render json: @cidade } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment