Created
May 10, 2010 12:46
-
-
Save mrsimo/396004 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
def create | |
@roseta = Roseta.new(params[:roseta]) | |
if @roseta.save | |
flash[:notice] = 'Roseta creada.' | |
lastros = Roseta.find(:first,:order=>"id desc") | |
redirect_to :action => 'edit', :id => lastros.id | |
else | |
@errors = 'd' | |
render :action => 'new' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment