Re: [Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-08 Thread Liz Huang
THe part of code is: def downloadCSV require 'csv' @ary = session[:ary] csv_string= CSV.generate do |csv| @ary.each do |t| csv << [t] end end send_data csv_string, type: 'text/csv; charset=iso-8859-1; header=present',

Re: [Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-08 Thread Colin Law
On 8 August 2016 at 19:25, Liz Huang wrote: > > > Hi, > > Recently I just upgrade rails from 4.2.0 to 5.0.0, wonder what I need to do > to > make send_data downloadable file working again? Now the data displayed in > page instead of downloadable file as before? You need to post the bit of code th

[Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-08 Thread Liz Huang
Hi, Recently I just upgrade rails from 4.2.0 to 5.0.0, wonder what I need to do to make send_data downloadable file working again? Now the data displayed in page instead of downloadable file as before? Thanks! Liz -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread Colin Law
On 8 August 2016 at 15:52, 'krfg' via Ruby on Rails: Talk wrote: > > > On Monday, August 8, 2016 at 4:01:16 PM UTC+2, Colin Law wrote: >> >> >> The are (or were) in your tree. The rails root dir contains a bin >> directory with those files in it. Somehow they have been deleted. I >> suggest you

Re: [Rails] Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread 'krfg' via Ruby on Rails: Talk
On Monday, August 8, 2016 at 4:01:16 PM UTC+2, Colin Law wrote: > > > The are (or were) in your tree. The rails root dir contains a bin > directory with those files in it. Somehow they have been deleted. I > suggest you do > git checkout . > (note the dot on the end) which will restore them

Re: [Rails] Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread Colin Law
On 8 August 2016 at 13:36, 'krfg' via Ruby on Rails: Talk wrote: > Hi, > > after few weeks of inactivity I ran today on my master branch the command > 'git status', and I got this: > > krfg@SATELLITE-L50-A-161:~/workspace/example_app (master)*$ git status > On branch master > Your branch is up-to-

[Rails] Re: Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread 'krfg' via Ruby on Rails: Talk
I am using Rails 4.2.2, ruby 2.2.1p85 and rvm. 'rails server' does not work anymore. 'rails console --sandbox' does not work anymore: krfg@SATELLITE-L50-A-161:~/ workspace/example_app (master)*$ rails console --sandbox Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH]

[Rails] Re: Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread 'krfg' via Ruby on Rails: Talk
I am using Rails 4.2.2, ruby 2.2.1p85 and rvm. 'rails console --sandbox' does not work anymore: krfg@SATELLITE-L50-A-161:~/workspace/example_app (master)*$ rails console --sandbox Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to th

[Rails] Incomprehensible (for me) changes not staged for commit

2016-08-08 Thread 'krfg' via Ruby on Rails: Talk
Hi, after few weeks of inactivity I ran today on my master branch the command 'git status', and I got this: krfg@SATELLITE-L50-A-161:~/workspace/example_app (master)*$ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add/rm ..

Re: [Rails] Upgrade to Rails 5 link not working

2016-08-08 Thread Colin Law
On 7 August 2016 at 22:36, Jimmy Lin wrote: > There is no issue with turbolink nor with any page source. > Then when i go through my gem file, i found an old gem which i don't need > anymore. I checked and it is stated only support for rails 3-4. After I > remove it, it works fine now. > Thank you