Skip to content

Instantly share code, notes, and snippets.

@mrsimo
Created May 10, 2010 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrsimo/396004 to your computer and use it in GitHub Desktop.
Save mrsimo/396004 to your computer and use it in GitHub Desktop.
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