【发布时间】:2012-01-13 03:07:32
【问题描述】:
我正在尝试做这样的事情:
cache "api/v1/cars_index/#{I18n.locale}/car/#{car.cache_key}" do
attributes :id, :brand, :model_name, :fuel, :km, :year, :price
node(:color) { |car| car.color.present? ? car.color : '' }
end
【问题讨论】:
标签: ruby-on-rails api caching rabl