Skip to content

Instantly share code, notes, and snippets.

@valakirka
Created August 21, 2009 15:55
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 valakirka/172131 to your computer and use it in GitHub Desktop.
Save valakirka/172131 to your computer and use it in GitHub Desktop.
def create
@ipoint = current_user.ipoints.build(params[:ipoint])
if @ipoint.save
flash[:notice] = 'Ipoint was successfully created.'
redirect_to(@ipoint)
else
flash[:notice] = 'There was an issue while saving the Ipoint'
render :action => "new"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment