fix crash, nil User object
update gems, update Rails to 4.0.9