Associations I-Show a destination


#1

help me i have no idea about this exercise I am stuck in here.
this is my code:

class DestinationsController < ApplicationController
def show
@destination= destination.find(params[:id])
end

end


#2

The problem is you didnt capitalize the 'd' in Destination.find(params[:id])

class DestinationsController < ApplicationController
def show
@destination= Destination.find(params[:id])
end
end


#3

thanks @dj_28 it work for me !