updated the gem and application.rb files