5 lines
182 B
Ruby
5 lines
182 B
Ruby
json.array!(@recipes) do |recipe|
|
|
json.extract! recipe, :id, :name, :duration, :ingredients, :process, :picture_url, :original_url
|
|
json.url recipe_url(recipe, format: :json)
|
|
end
|