short circuit evaluation  

Ruby doesn’t look at both expressions unless it has to; if it sees

false && true

it stops reading as soon as it sees && because it knows false && anything must be false.

 
0
Kudos
 
0
Kudos

Now read this

export CSV by rails

I will not save a file, just make it downloaded by Tempfile. I will not use database table, of course. This is how my form looks (in new page) config/routes.rb file resources :accounts, only: [:new, :create]... Continue →