assign_attributes doesn't exist in rails 3.0