Exporting to CSV in Ruby 1.9.2 -


an existing app, using comma csv exports upgraded ruby 1.9.2 , nothing exports. basically, server sits , spins. know there fastercsv dependency comma, fastercsv no longer supported in 1.9.2 csv in core.

according documentation, comma should work without fastercsv, not having experience. can't export using code:

controller:

format.csv     @sis_action_rendered = true     render :csv => current_user.authorized_clinical_stuff   end 

model:

comma # implicitly named :default user :salutation name email user :login user :ethnicity user :gender user :is_verified => 'apta trained' work_phone alternate_phone site_names site_address degree pt_degree ci_credentialed? ci_advanced_credentialed? board_certs updated_at end 

keep in mind model code pulling info fro several related objects generate 1 csv.

fastercsv csv in 1.9.2.

from the docs:

this version of csv library began life fastercsv. fastercsv intended replacement ruby’s standard csv library.

[...]

we must have met our goals because fastercsv renamed csv , replaced original library.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -