1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-21 00:34:26 -05:00
bike-database/app/views/bikes/index.json.jbuilder
2014-01-18 15:27:14 -06:00

4 lines
97 B
Ruby

json.array!(@bikes) do |bike|
json.extract! bike,
json.url bike_url(bike, format: :json)
end