Hi, if i want to specify what layout has to use the view, the link to delete method stop workind and take to show view. i
class RestaurantsController < ApplicationController # GET /restaurants # GET /restaurants.xml layout "restaurants" def index @restaurants = Restaurant.all my_json = { :array => [1, 2, 3, { :sample => "hash"} ], :foo => "bar" } puts JSON.pretty_generate(my_json) respond_to do |format|