This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CommentsController < ApplicationController | |
before_filter :load_commentable | |
def index | |
@comments = @commentable.comments | |
end | |
def new | |
@comment = @commentable.comments.new | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |