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

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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