find-classroom/app/controllers/excel_controller.rb

27 lines
465 B
Ruby
Raw Normal View History

2017-01-04 13:03:09 +08:00
=begin
Date: 2016.12.28
Importex::Base的类
使excel的ruby插件 importex
gem install importex
使
./script/plugin install git://github.com/ryanb/importex.git
=end
class ExcelController < ApplicationController
def parse
#output excel
respond_to :html, :xlsx
def index
@user = User.all
respond_with @users
end
end
def creat
@excel = Excel.new(excel_params)
@book.excel.url = params[:file];
end
end