Re: data not being saved

Shandy Nantz
2008-11-15T20:08:22Z

Frederick Cheung wrote:
> On Nov 15, 7:42�pm, Shandy Nantz
<rails-mailing-l...-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt>
> wrote:
>> � �[4;35;1mUser Load (0.000000) [0m � �[0mSELECT * FROM users WHERE
>> (users.email IS NULL) LIMIT 1 [0m
>
> this looks suspicious, (I''m guessing it''s a query from
> validates_uniqueness_of) - it looks like your controller is looking
> for params in the wrong place.
> the logs show that nothing attempted to write the data at all, usually
> this is because of a failed validation.
>
> Fred

You are correct, I was validates_uniqueness_of :email and then not
passing an email address. Thanks for the help, hope everyone is having a
good weekend.

-S
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com