Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel cant open this file format error #49

Open
saroar opened this issue Jul 26, 2016 · 0 comments
Open

Excel cant open this file format error #49

saroar opened this issue Jul 26, 2016 · 0 comments

Comments

@saroar
Copy link

saroar commented Jul 26, 2016

i like to download for each index or show page
here in my code look like

collection_action :download_xlsx, method: :get do
project = Project.find(params[:id])
send_data(filename: "#{project.project_name}.xlsx", type: "application/xlsx")
end

index do
column 'Download Links' do |c|
link_to 'Download', download_xlsx_admin_projects_path(id: c.id, format: :xlsx)
end
end

http://prntscr.com/bxrumt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant