Added Rails.logger.debug STRING statements to controller and model