我在控制器调用此方法:为什么我会得到一个nomethod错误?
delete_heard_timeline_event(current_user.id, @showable_video.user.id, @showable_video.video.id)
,我一定在我的模型:
def delete_heard_timeline_event(actor_id, subject_id, secondary_subject_id)
TimelineEvent.find_by_actor_id_and_subject_id_and_secondary_subject_id_and_event_type(actor_id, subject_id, secondary_subject_id, 'heard_event').destroy
end
为什么轨告诉我,该方法是不确定的?
乐意帮助你 – bor1s 2011-05-21 06:27:46