Category "ruby-3"

Export CSV File with custom headers and values Rails

I have an export CSV method which works fine. To this, I would like to add the associated model values in the same CSV file. def self.to_csv(subjects, headers,

After upgrading to Ruby 3, unable to pass multiple arguments to my "initialize" method

I recently upgraded to Rails 6 with Ruby 3. I have this in a controller my_object = MyObject.new(my_object_params, @header) The object “initialize&rdquo