saving file after passing parameter

后端 未结 2 1338
挽巷
挽巷 2021-01-25 08:34

Here is the parent question: save string to file I want to pass the parameter which will be saved in file(.csv) after clicking button.

@bigtable is a table with strings

相关标签:
2条回答
  • 2021-01-25 09:01

    I've found a solution - to not write double post here is the link to the topic with the answer: saving variable to file and downloading it

    0 讨论(0)
  • 2021-01-25 09:05

    Use <%= form_tag(url, :remote => true) do %> to make the call with Ajax, so your page will not be redirected. Use your server logs to see if the request is executed (if you want to get the result of the ajax call in your page, look at http://www.alfajango.com/blog/rails-3-remote-links-and-forms/).

    0 讨论(0)
提交回复
热议问题