def new
@user = User.new
render_with_language
end
def create
cookies.delete :auth_token
# protects against session fixation attacks, wreaks havoc with
# request forgery protection.
# uncomment at your own risk
# reset_session
@user = User.new(params[:user])
@user.save!
redirect_back_or_default('/')
flash[:notice] = "il tuo account è stato creato a breve riceverai una mail con il link per attivarlo :]"
rescue ActiveRecord::RecordInvalid
redirect_to :action => 'new'
end