Created
March 5, 2014 15:15
-
-
Save bogdan/9369197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TimeEntryReportsController < ApplicationController | |
def index | |
@time_entry_report = TimeEntryReport.new(params[:time_entry_report]) | |
respond_to do |f| | |
f.html do | |
@assets = @time_entry_report.assets.page(params[:page]) | |
end | |
f.csv do | |
send_data @time_entry_report.to_csv, type: "text/csv", disposition: 'inline' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment