Skip to content

Instantly share code, notes, and snippets.

Arunkumar Ranganathan Arunk1390

View GitHub Profile
@Arunk1390
Arunk1390 / users_controller.rb
Created Nov 30, 2016
UsersController - app/controllers/users_controller.rb
View users_controller.rb
class UsersController < ApplicationController
def excelReport
@usera = User.where(user_type: 'a')
@usera = User.where(user_type: 'b')
respond_to do |format|
format.xls do
# Spreadsheet Initialization
Spreadsheet.client_encoding = 'UTF-8' # Spreadsheet Encoding format
You can’t perform that action at this time.