search for: game

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

Did you mean: came
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:...
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...
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
...m at line @school = School.find_by_title(params[:school_id].gsub(''-'', " ")) for team in @school.teams ........ end @school does exist cause i tried with .find(:first) and it gave the same error. Also I''m getting undefined method `reject'' for #<Game:0x24ca1c4> From @home.game_ids = @game @game = Game.new(params[:game]) @game.opponent = params[:team][:name] @home = Team.find_by_user_id(current_user.id) @opponent = Team.find_by_name(@game.opponent) if @game.save flash[:notice] = ''Game was successfully...
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...
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 belo...
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 = Game.find(params[:id]) respond_to d...
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 Money Paper Time [1] Time Money Game Money Money Le...
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....
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://img...
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... --~--~---------~--~----~------------~-------~--~----~ You received this message be...
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...
2009 Jul 06
3
Rspec book issue (mastermind example)
...39;'s definitely not beyond me to make a mistake, but I have checked and double checked my code and it all looks fine via the book examples. Here''s the output I''m getting... ______________________________________________________ cucumber features Feature: code-breaker starts game As a code-breaker I want to start a game So that I can break the code Scenario: start game # features/ codebreaker_starts_game.feature:7 Given I am not yet playing # features/ step_definitions/mastermind.rb:3 When I start a new game...
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 "vp1","vp10","vp11",..: 1 12 23 34 44... $ Game :...
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 encoraug...
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 fo...
2001 Nov 07
4
Audio Section - Game Programming Gems 3
I'm interested to see if a senior vorbis developer would like to write an article introducing vorbis for the audio section of Game Programming Gems 3. The proposal summary needs to be entered in the next few days. Here is the official announcement: Hi, I'm the audio section editor for the newly announced Game Programming Gems 3. This is your opportunity to contribute to the development community and write your name in...
2001 Nov 07
4
Audio Section - Game Programming Gems 3
I'm interested to see if a senior vorbis developer would like to write an article introducing vorbis for the audio section of Game Programming Gems 3. The proposal summary needs to be entered in the next few days. Here is the official announcement: Hi, I'm the audio section editor for the newly announced Game Programming Gems 3. This is your opportunity to contribute to the development community and write your name in...
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...
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...