Re: data not being saved

Frederick Cheung
2008-11-15T19:49:00Z

On Nov 15, 7:42 pm, Shandy Nantz
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
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
>    [4;36;1mSQL (0.000000) [0m    [0;1mCOMMIT [0m
> Redirected tohttp://localhost:3000/league/beginning
> Completed in 0.03700 (27 reqs/sec) | DB: 0.01000 (27%) | 302 Found
> [http://localhost/admin/create_user]
>
> When I try and manually add a user through irb nothing even though it
> appears that it is saving. The only thing that I can guess is that it is
> being saved to another table somewhere but my .yml seems to think it is
> using the same table that I am looking at.
> --
> Posted viahttp://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