ok, all good now:

flash[:error] = @user.errors.full_messages.collect { |msg| msg + "<br/>" }

just wondering why i do need to do this now since it worked before....maybe
i screwed somethign up...

thx again for ur time!


On Mon, Oct 25, 2010 at 1:00 PM, tom <tomabr...@gmail.com> wrote:

> 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
>
>
>
> On Mon, Oct 25, 2010 at 12:54 PM, radhames brito <rbri...@gmail.com>wrote:
>
>>  @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
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to rubyonrails-t...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to