RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: tightwork
How would you destroy a comment? I get:
NoMethodError in CommentsController#destroy undefined methodcomments' for #Comment:0x000000030aae58`
NoMethodError in CommentsController#destroy undefined method
comments controller:
def destroy @comment = @commentable.comments.find(params[:id]) @comment.destroy
Maybe I am over complicating this with gon? I can just render it directly with json and use the GET method in Fullcalendar?
How did you expose your events to Fullcalendar? did you pass the json with gon or as an array? I have my events passed with gon sitting in window.gon but I have no idea how to set it into events:[
How would you destroy a comment?
I get:
NoMethodError in CommentsController#destroy
comments' for #Comment:0x000000030aae58`undefined method
comments controller:
Maybe I am over complicating this with gon? I can just render it directly with json and use the GET method in Fullcalendar?
How did you expose your events to Fullcalendar? did you pass the json with gon or as an array? I have my events passed with gon sitting in window.gon but I have no idea how to set it into events:[