layout "restaurant" stop working link to deltemethod

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|

Try restaurant_path for delete.

it was a problem with a <script> in the layout i put a link to jquery in other part of the page instead of head tag. thanks anyway