Sha256: 97bc7c8ccf0c4b510a7bac6d24416cc603fa9506b7051fad2da7e8962914af9d

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

class PostsController < ApplicationController
  respond_to :csv, :xls, :xlsx, :html

  def index
    respond_with(Post.all, :columns => %w[title visits conversion_rate published_on published expired_at])
  end

  # Used for stub/mocking a redirect request
  def successful_redirect
    render :text => "xls"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudxls-rails-0.3.0 spec/test_app/app/controllers/posts_controller.rb