saving file after passing parameter

后端 未结 2 1341
挽巷
挽巷 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: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/).

提交回复
热议问题