I have a before_filter to set a arel relation, but then if I call first in the method it doesn't like it. It seems to work fine in the console. What am I missing here?
class TeamsController < ApplicationController
before_filter :find_team
def show
@team.first
end
private
def find_team
@team = Team.where(:id => params[:id])
end
end