Permalink
Browse files

return json with puppies index and show

  • Loading branch information...
1 parent cf3717e commit 15131ea8d9ba040e3292010f152ad59a3d7413a6 @cheezy committed Sep 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controllers/puppies_controller.rb
@@ -6,6 +6,7 @@ def index
respond_to do |format|
format.html # index.html.erb
+ format.json { render :json => @puppies }
end
end
@@ -14,6 +15,7 @@ def show
respond_to do |format|
format.html # show.html.erb
+ format.json { render :json => @puppy }
end
end

0 comments on commit 15131ea

Please sign in to comment.