Andrew Don wrote:
@user = User.new(params[:user])
The above line should populate a user object with values entered by the
client. Unfortunately the user object is populated with nil values, even
though the params user object has the client entered values. This seems
very unusual and more than likely an error on my part, but suggestions
about resolving the problem would be welcome.
When you say the "user object is populated with nil values", do you mean the Rails object, or the related record in the database? If the latter, my first suggestion would be to check to see if there's a validation that's keeping the User.save from succeeding. If there's not an obvious (one you look) problem there, I'd suggest you post some additional code.