Skip to content

A gem to generate xlsx documents from rubyXL by using rxlsx templates.

License

Notifications You must be signed in to change notification settings

sramos/rubyXL-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Santiago Ramos
Aug 26, 2019
0f4d804 · Aug 26, 2019

History

4 Commits
Aug 26, 2019
Aug 23, 2019
Aug 23, 2019
Aug 23, 2019
Aug 26, 2019
Aug 23, 2019
Aug 26, 2019

Repository files navigation

rubyXL-rails

A gem to generate xlsx documents by using rxlsx templates.

Based on {atog}[https://github.com/atog]‘s spreadsheet_on_rails plugin.

Installation

Add this to your Gemfile and run the bundle command.

gem "rubyXL-rails"

Getting Started

Add support for the new format in your controller:

class HomeController < ApplicationController

  def index
    respond_to do |format|
      format.html
      format.xlsx { render :xlsx => "<filename>"}
    end
  end
end

Create an xlsx view app/views/home/index.rxlsx:

The view basically allow you to write directly with the rubyXL gem.

Copyright © 2019 sramos, 2012 10to1; released under the MIT license

About

A gem to generate xlsx documents from rubyXL by using rxlsx templates.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages