Method: PassTypesController#index
- Defined in:
- app/controllers/pass_types_controller.rb
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/pass_types_controller.rb', line 4 def index @pass_types = current_organization.pass_types.includes(:passes).paginate(:page => params[:page], :per_page => 50) respond_to do |format| format.html format.csv do @filename = 'pass_types.csv' @csv_string = @pass_types.to_comma send_data @csv_string, :filename => @filename, :type => 'text/csv', :disposition => 'attachment' end end end |