We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: