views:

84

answers:

0

my code is

class FatWorker < Workling::Base

 def do_work

  #some code to export csv file

 send_data csv_string, :type => "text/csv; charset=iso-8859-1; header=present",     :disposition => "attachment", :filename => "sample.csv"

 end

end

and I'm calling this in another model

def export_to_csv

    FatWorker.asynch_do_work()

  end

but it returns error error is

Missing template admin/providers/export_to_csv.erb in view path /home/sapthakiri/Work/sample/app/views:/home/sapthakiri/Work/sample/vendor/plugins/query_reviewer/lib/query_reviewer/views: