search for: games_path

Displaying 1 result from an estimated 1 matches for "games_path".

Did you mean: game_path
2012 Feb 23
4
Undefined Method
...o to display all the related console records upon button click so e.g. If a user clicks on the Dreamcast link then I would like it to display all records that have Dreamcast stored as their console. I have the following example code in my index class: <%= link_to ''DREAMCAST'', games_path(: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...