这是代码:
class SyncController < ApplicationController
def get_sync
@passed_ids = params[:ids].split(',')
@users = @passed_ids.collect{|id| User.find(id)}
#add the current user to the list
@users << current_user
@recommendations = get_recommendations(@users)
end
end
module SyncHelper
def get_recommendations(users)
users
end
end
我收到一个找不到get_recommendations
方法错误...