Sha256: 81f3b8a4efdb77f81bc745d8dfb7e16bdef7def96d5bf0596b893325f41d6082

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

#---
# Excerpted from "Crafting Rails Applications",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material, 
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/jvrails for more book information.
#---
class HomeController < ApplicationController
  def another
    render :xlsx => "index", :filename => "filename_test.xlsx"
  end

  def index
    respond_to do |format|
      format.html
      format.xlsx
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axlsx_rails-0.1.1 spec/dummy/app/controllers/home_controller.rb