@user.save if @user.errors.empty? flash[:notice] = “Thanks for signing up! Please check your email to activate your account.” else redirect_to signup_url
end
if the flash is not set then you should not see anything, try setting something
@user.save if @user.errors.empty? flash[:notice] = “Thanks for signing up! Please check your email to activate your account.” else redirect_to signup_url
end
if the flash is not set then you should not see anything, try setting something
thats why i am violating the validation, so to speak. but somethign is strange. im already domparing a new app with that code, but cant find the hood where its gets messy… thx
ok, all good now:
flash[:error] = @user.errors.full_messages.collect { |msg| msg + “
” }
just wondering why i do need to do this now since it worked before…maybe i screwed somethign up…
thx again for ur time!