Open petrosp opened 8 years ago
Hi,
I am still getting the name of the Controller#action instead of the filename I specify:
Controller#action
def comptoxls results = @matcher.compare respond_to do |format| format.xlsx { render xlsx: :comptoxls, filename: "compare_#{Time.now.strftime('%d-%m-%Y')}"} end end
When I call this action the filename I get is comptoxls.xlsx Is there any hint around this please?
action
comptoxls.xlsx
Strange, we do set the filename here. Perhaps you can have a look with a debugger to see what's going on?
I'm having the same problem. Were you able to solve it @petrosp ?
Hi,
I am still getting the name of the
Controller#action
instead of the filename I specify:When I call this
action
the filename I get iscomptoxls.xlsx
Is there any hint around this please?