Skip to content

Instantly share code, notes, and snippets.

View isasi88's full-sized avatar

Henrys isasi88

View GitHub Profile
class CommentsController < ApplicationController
before_filter :load_commentable
def index
@comments = @commentable.comments
end
def new
@comment = @commentable.comments.new
end
NoMethodError in Comments#create
/app/views/comments/_form.html.erb where line #6 raised:
undefined method `user_comments_path' for #<#<Class:0x000001099e4378>:0x00000107d75c50>
Extracted source (around line #6):
3
4
5
6
7