I tried this <%= grid(@geneticBank) do |h| h.column name: 'Code', attribute: 'code',html: {style: 'column-width: 200px;'}, assoc: :genetic_bank end-%> thanks.