I keep getting the error: the wrong number of arguments (1 to 0)
def destroy @event = Event.find(params(:id)) @event.destroy flash[:success] = "Event destroyed." redirect_to events_path end
I am trying to destroy @event and it does not work because @event = Event.find (params (: id)) has the wrong number of parameters. what am I doing wrong?
source share