これを機能させるために必要なアイデアはありますか?私は私の人生のためにそれを理解することはできません。
def get_prices(c)
  @print_prices = {}
  Billing.where(:name => c).column_names.each do |d|
    if d.match(/^print_/)
      @print_prices[d] = d.value
    end
  end
  return @print_prices
end
何を代用すればいいのかわからないd.value。
助けてくれてありがとう。