1
獲取wrong number of arguments (2 for 1)
下面的代碼...任何想法?rails - find_by_sql:參數數量錯誤(2表示1)
@user_industry = current_user.industry
@industries = Listing.find_by_sql("SELECT * FROM listings WHERE industry = ?", @user_industry)
有同樣的問題。下面的答案有幫助! – user663778