我想通过POST /notifications/clear来访问此操作 resources :notifications, :only => [] do scope :notifications do end
我会这么做,但是我有一个missing controller错误,因为--我想--它会寻找clear
SELECT DISTINCT notifications.id,users.firstname,users.lastname,notifications.created_at, notifications.readFROM notifications LEFT JOIN (SELECT is_accepted,friend_id FROM friends) AS fnds
ON fnds.frien