Rails 4.2 removed respond_to and respond_with to the responders gem, you need to add gem 'responders', '~> 2.0' to your Gemfile to make them work.
Rails 4.2
respond_to
respond_with
responders
gem 'responders', '~> 2.0'
# Gemfile gem 'responders', '~> 2.0'