我用腳手架命令創建的模型 class Post < ActiveRecord::Base
has_many :comments, as: :commentable
end
class Comment < ActiveRecord::Base
belongs_to :commentable , polymorphic: true
end
...
的routes.r
我'收到此錯誤: undefined method `invite_path' for #<#<Class:0x9396d38>:0x8f8fb30>
我控制器 class ConfirmationsController < ApplicationController
skip_before_action :verify_authenticity_token
def in