mirror of
https://github.com/kingomarnajjar/CA-Hackathon-Term2.git
synced 2026-07-25 22:27:26 +10:00
2 lines
128 B
Ruby
2 lines
128 B
Ruby
json.extract! product, :id, :photo, :description, :price, :created_at, :updated_at
|
|
json.url product_url(product, format: :json)
|