どうやって書くのが一番いいかわからない。乾杯!
def get_prices(c)
@print_prices = Billing.where(:name => c).first.attributes.select{ |i| i.match(/^print_/) }
end
どうやって書くのが一番いいかわからない。乾杯!
def get_prices(c)
@print_prices = Billing.where(:name => c).first.attributes.select{ |i| i.match(/^print_/) }
end