Skip to content

Instantly share code, notes, and snippets.

Arunkumar Ranganathan Arunk1390

Block or report user

Report or block Arunk1390

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.