Displaying 1 result from an estimated 1 matches for "find_by_console".
2012 Feb 23
4
Undefined Method
...:console => ''Dreamcast'')%>
the above code is repeating for each individual console.
Now in my gamescontroller I have the following in my index:
def index
@games = Game.paginate(:per_page => 4, :page =>
params[:page]).search(params[:search])
@games = @games.find_by_console(params[:console]) unless
params[:console].blank?
end
The problem I receive is that when I click on the Gaming section of my
website I receive the following error message which I assume is to say
activerecord is not connecting:
undefined method `find_by_console'' for
#<WillPaginate::C...