CSVãã¡ã¤ã«ã«ãã¼ã¿ãexportããããã®ä¿®æ£ç¹ã ActiveScaffold ã使ã£ã¦ Ruby on Rails ãæ©è½ã¢ãããã ããå¼ç¨ã controllerã®å¤æ´ç¹ã class UsersController < ApplicationController active_scaffold :user do |conf| conf.action_links.add 'export_csv', :label => 'Export to Excel', :page => true end def export_csv # find_page is how the List module gets its data. see Actions::List#do_list. records = find_page().items return if records.size ==
{{#tags}}- {{label}}
{{/tags}}