class InformationController < ApplicationController
  def data
    data = Information.data

    respond_to do |format|
      format.json { render json: data }
    end
  end
end

class InformationController < ApplicationController
  def data
    respond_with_json Information.data
  end
end

Use respond_with_json on information controller
Use respond_with_json on information controller
