I saw this somewhere and thought it looked damn nice :
@user = User.new
@user = User.new(params[:user])
self.current_user = @user
flash[:notice] = “Thanks for signing up!”
render :action => ‘new’
so save! returns an exception instead of false if it couldn’t happen,
which is then caught with the rescue block.
It gets rid of an if, else block.
Can anyone see a flaw? or a reason why this might be crappy?