Skip to content

Instantly share code, notes, and snippets.

@MarkPochert
Created December 1, 2010 15:18
Show Gist options
  • Save MarkPochert/723621 to your computer and use it in GitHub Desktop.
Save MarkPochert/723621 to your computer and use it in GitHub Desktop.
def create
@user = User.new(params[:user])
respond_to do |format|
if @user.save
format.html { redirect_to(@user) }
else
format.html { redirect_to(@user, :notice => 'Error') }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment