search for: games

Displaying 20 results from an estimated 8467 matches for "games".

Did you mean: names
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following error 2) NoMethodError in ''/games/_game.rhtml should show game name'' undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c> /Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in `matches?'' ./spec/views/games/_game.rhtml_spec.rb:39: d...
2007 Oct 06
4
spec''ing views, mock_model associations
I writing a spec that returns the count of how many players in a game: it "should how many players in a link to all players" do render :partial =>"games/game", :object => @game response.should have_tag(''a'',"(2) Players") end I''m not sure how to do the mock model, I think it would be done two ways but unsure of the syntax: 1: add players in @game = mock_model(Game, :name => ''The Battle...
2016 Oct 26
0
[Bug 2632] New: Rockstar games 1-800==76I== 67I3 ==!!$$$ ROCKSTAR tech support
https://bugzilla.mindrot.org/show_bug.cgi?id=2632 Bug ID: 2632 Summary: Rockstar games 1-800==76I== 67I3 ==!!$$$ ROCKSTAR tech support Product: Portable OpenSSH Version: 7.3p1 Hardware: Alpha OS: Solaris Status: NEW Severity: critical Priority: P5 Component: Miscellaneous...
2008 Apr 07
5
Associations errors
...r < ActiveRecord::Base belongs_to :team end class School < ActiveRecord::Base has_many :teams belongs_to :users def to_param "#{title.gsub(/[^a-z0-9]+/i, ''-'')}" end end class Team < ActiveRecord::Base has_many :players has_and_belongs_to_many :games belongs_to :school belongs_to :user def to_param "#{name.gsub(/[^a-z0-9]+/i, ''-'')}" end end class User < ActiveRecord::Base has_one :team has_one :school end --~--~---------~--~----~------------~-------~--~----~ You received this message because you...
2006 Apr 07
5
Confusion about has_many / belongs_to ...
I have a table called players and its model Player, and I have a table called games and its model Game. In the games table I have: player1_id int(11) player2_id int(11) I want the tables to be associated so that I can access the player objects using table.player1 and table.player2 rather than having to lookup the objects based on the ids. I am not sure how to go about this b...
2006 Apr 10
6
Object isn''t being saved when called through association
I have three models in this small game I''m working on - the Game, Players, and Turns. A Player should be able to rescue another Player on any given turn. So it looks like this: class Game has_many :players has_many :turns def rescue_player(p) t = turns.last t.rescued = p t.save end end class Turn belongs_to :rescued, :foreign_key =>
2012 Mar 10
4
undefined local variable or method 'game'
I am doing a web shop assignment and have got a problem with my action mailer. I get an error undefined local variable or method ''game'' I have the following in my mailer: def game_interest(user, game) @user = user @game = Game mail :to => user.email, :subject => "Game Interest" end and the following in my controller: def email @game =
2005 Jun 01
7
Which variable exist after random
Dear R-helper, How could I count only some variable was exist after running sample (random) function. For example, > testx <- factor(c("Game","Paper","Internet","Time","Money")) > for(i in 1:2) { + x <- sample(testx,replace=TRUE) + print(x) + } [1] Money Money Time Internet Time Levels: Game Internet
2008 Feb 25
3
customize resource routes
Hi all, I have this application that lists videogames, which i am rewriting to follow REST. I need to have this url : /games/xbox360/halo-3 ( map.connect "/ games/:platform_id/:permalink",:controller => "games",:action => "show" ) This is no problem with map.connect, but with map.resources i can not make this. m...
2011 Oct 25
0
Mega Games Pack For WINE/Windows Games (Online Edition)
[Image: http://img692.imageshack.us/img692/91/splashns.jpg ] Free Mega Games Pack (Online Edition) Free MGP is now an online Repository of games you can download, the games are compatible with Windows and WINE/Linux. [Image: http://img851.imageshack.us/img851/2441/mgpinstall.th.jpg ] ("http://imageshack.us/photo/my-images/851/mgpinstall.jpg/") [Image: http://img1...
2008 Apr 07
7
Saving attribute
Something is getting lost here. def create @home = Team.find_by_user_id(current_user.id) for player in @home.players player.update_attribute(:game_id, @game.id) end end def show @players = Player.find_all_by_game_id(params[:id]) end view <%= @players.size %> # mistakenly equals zero Played with the console and everything should be working fine...
2007 Oct 16
8
Using multiple foreign keys in views
I have a model, Game, that has_many :teams. There''s a home team and an away team. I created two foreign keys, so each game can have two teams associated with it. Here''s the Team model: class Team < ActiveRecord::Base belongs_to :game, :class_name => ''Game'', :foreign_key => ''hometeam_id'' belongs_to :game, :class_name =>
2009 Jul 06
3
Rspec book issue (mastermind example)
Hey Everyone, Just a simple question. I have read and re-read the examples and I''m not getting the proper output. I''m on page 73/74 of the Rspec book and it says I should have "4 steps passed". I think the problem is within my /step_definition/mastermind.rb" file. It''s definitely not beyond me to make a mistake, but I have checked and double checked my
2004 Jul 16
1
Fixed and random factors in aov()
Hi, I'm confused about how to specify random and fixed factors in an aov() term. I tried to reproduce a textbook example: One fixed factor (Game, 4 levels) and one random factor (Store, 12 levels), response is Points. The random factor Store is nested in Game. I tried > str(kh.df) `data.frame': 48 obs. of 4 variables: $ Subj : Factor w/ 48 levels
2008 Nov 21
3
Chances of running a new game
Is there any chance to running new games under Wine (because I've seen some new videogames running in Youtube) and, what things can be made to try to get those games working. I don't know much about wine so I don't know how it works but, Colud we make some kind of guide about problems, solutions and wine moddings to encorauge...
2007 Oct 01
15
how to spec views
...c a view but haven''t done much view specing. This view render different partials depending on authentication of the user: annon, admin, player So I I''ll write if conditionals in the view with the partials it "should render signup propaganda for annon users trying to view games" do render "/games/index.rhtml" @logged_in?.should eql(false) response.should render_template(''_signup_propaganda'') end Now for my partial I know it''ll be wrapped all in a div with a class="signup_propaganda" Should I be testing for...
2001 Nov 07
4
Audio Section - Game Programming Gems 3
...audio gems: SECTION 6 AUDIO PROGRAMMING Introduction: Audio Programming 6.1 Game Audio Design Patterns 6.2 A Technique to Instantaneously Reuse Voices in a Sample-based Synthesizer 6.3 Software-based DSP Effects 6.4 Interactive Processing Pipeline for Digital Audio 6.5 A Basic Music Sequencer for Games 6.6 An Interactive Music Sequencer for Games 6.7 A Low-Level Sound API Many of these articles were introductory in nature and there is much more detail and many new topics ahead for the next book. ------------------------------------------------------------------- The Game Programming Gems 3 ann...
2001 Nov 07
4
Audio Section - Game Programming Gems 3
...audio gems: SECTION 6 AUDIO PROGRAMMING Introduction: Audio Programming 6.1 Game Audio Design Patterns 6.2 A Technique to Instantaneously Reuse Voices in a Sample-based Synthesizer 6.3 Software-based DSP Effects 6.4 Interactive Processing Pipeline for Digital Audio 6.5 A Basic Music Sequencer for Games 6.6 An Interactive Music Sequencer for Games 6.7 A Low-Level Sound API Many of these articles were introductory in nature and there is much more detail and many new topics ahead for the next book. ------------------------------------------------------------------- The Game Programming Gems 3 ann...
2007 Oct 08
6
spec''in controllers request for nested routes
describe PlayersController, "handling GET /saltmines/games/1/players" do before do @game = mock_model(Game, :to_param => "1") @game.stub_association!(:players, :find => mock_model(Player)) end def do_get get :index, :game_id => @game end it "should be successful" do do_get response.should b...
2009 Mar 22
2
Playing Gamemaker 6 and 7 games on OSX?
I have recently gotten back into making a games with gamemaker. I had a big game that I didn't finish on my old computer running Windows XP. But then my stupid sister dropped my laptop done the stairs. That was about 2 months ago, and I got a new laptop running OSX because my parents hate Windows (while I love it). I was looking through...