我使用的祖先寶石和我正在一個undefined method "arrange" for #<Array:0x007f8d58e58700>
錯誤與下面的代碼:祖先寶石「未定義的方法」的錯誤
<%= @shipmgr_carriers.arrange(:order => :name) %>
然而,當我只輸出@shipmgr_carriers
我得到一個數組與祖先:
[#<Shipmgr::Carrier id: 9, name: "testing", status: nil, created_at: "2012-01-16 22:44:28", updated_at: "2012-01-16 22:44:28", ancestry: nil>, #<Shipmgr::Carrier id: 10, name: "test", status: nil, created_at: "2012-01-16 22:44:28", updated_at: "2012-01-16 22:44:28", ancestry: "9">]
誰能告訴我爲什麼我無法調用數組變量的.arrange方法嗎?