2016-10-02 36 views

回答

0

嘗試:

User.find_by(authentication_token: "abcd1234") 

未被設計提供,但導軌(更具體的ActiveRecord)。文檔here

動態find_by_attribute_name方法已從ActiveRecord中刪除。

相關問題