Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Coffeebeans; trying to get app/views/restaurants/ to work; the alert doesn't appear
# Controller
class RestaurantsController < ApplicationController
def show
@restaurant = Restaurant.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.js #
# restaurants/show.html.erb
<%= link_to "Breakfast", @restaurant, :remote => true, :id => "breakfast_filter" %>
# restaurants/
alert("here we are");
Why is the file never reached?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment