Velocipede's User, Sales, and Bike Inventory Web App
 
 
 
 
 
 

4 lines
91 B

json.bikes [@bike] do |bike|
json.array! bike
json.set! :href, api_bike_path(bike)
end