test/rails_app/app/controllers/admin/posts_controller.rb in nunes-0.3.0 vs test/rails_app/app/controllers/admin/posts_controller.rb in nunes-0.3.1

- old
+ new

@@ -5,7 +5,15 @@ def index @posts = [ Post.new('First'), Post.new('Second'), ] + respond_to do |format| + format.html { render } + format.json { render :json => @posts } + end + end + + def new + head :forbidden end end