use Rails.logger.debug insetad of puts
Merge pull request #1 from bikramwp/master

using Rails.logger instead of puts