I'm facing an issue with ruby because I'm trying to get a nested attribute like that:
row :ratings do |ratings|
        table_for ratings.list do
          column :promptness do |list|
            table_for rating.list.promptness do
              column :rating
              column :comment
            end
          end
        end
end
I can get the data with the dot notation but I can't make it work using the [] notation like this:
['a', 'b', 'c'].each do |el|
          table_for ratings.list do
            column el do |list|
              table_for rating.list[el] do
                column :rating
                column :comment
              end
            end
          end
      end
What's the reason in this? How could I eventually solve this? Thank you for any help
 
     
    