search for: players_controller

Displaying 3 results from an estimated 3 matches for "players_controller".

2007 Oct 08
6
spec''in controllers request for nested routes
...#39;index'') end end 1) ActiveRecord::RecordNotFound in ''PlayersController handling GET /saltmines/games/1/players should be successful'' Couldn''t find Game with ID=#<Spec::Mocks::Mock:0x2ffcde4> /Volumes/EXTERNAL/web/omenking.ca/config/../app/controllers/players_controller.rb:5:in `index'' /Volumes/EXTERNAL/web/omenking.ca/spec/controllers/players_controller_spec.rb:71:in `do_get'' /Volumes/EXTERNAL/web/omenking.ca/spec/controllers/players_controller_spec.rb:75: /Volumes/EXTERNAL/web/omenking.ca/spec/controllers/players_controller_spec.rb:63: I'&...
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve hit a brick wall here and hoping someone can help me. I''ve got a module, TrustRanking, which extends a number of model''s instance methods, and I want to extend their class methods too, but I can seem to work out how to do it. Simply including the module from the class works a treat for the
2009 Dec 21
3
beginner problem
...o open my webpage application. The error is the next NoMethodError in PlayersController#index undefined method `scaffold'' for PlayersController:Class RAILS_ROOT: C:/Instant/rails_apps/players Application Trace | Framework Trace | Full Trace C:/Instant/rails_apps/players/app/controllers/players_controller.rb:2 C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking'' C:/Instant/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_file'' C:/Instant/ruby/lib/ruby/...