search for: player_id

Displaying 7 results from an estimated 7 matches for "player_id".

Did you mean: layer_id
2011 May 19
1
update_attributes updates data from second instance of nested form but not the first
...;=>"16", "end_date(5i)"=>"46", "rosters_attributes"=> { "0"=> { "name"=>"abc", "players_rosters_attributes"=> { "0"=>{"player_id"=>"1", "id"=>"65"}, "1"=>{"player_id"=>"2", "id"=>"66"}, "2"=>{"player_id"=>"3", "id"=>"67"}, &...
2006 Mar 16
3
inserted_at seems buggy in production mode?
...bjsubid AND attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] AND cons.contype = ''p'' AND dep.refobjid = ''match_comments''::regclass MatchComment Create (0.002280) INSERT INTO match_comments ("body", "match_id", "player_id", "inserted_at") VALUES(''testtest'', 159, 14, ''2006-03-16 12:22:55'') SQL (0.000684) SELECT currval(''public.match_comments_id_seq'') SQL (0.034973) COMMIT Redirected to http://tcuithof.laddertennis.nl/match/show/159 Proc...
2010 Jun 10
9
Rails3 beta4 + Ruby 1.9
When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I cannot save a record: > rails console Loading development environment (Rails 3.0.0.beta4) ruby-1.9.1-p378 > g = Game.new => #<Game id: nil, player_id: nil, versus_id: nil, finished: nil, created_at: nil, updated_at: nil> ruby-1.9.1-p378 > g.save NameError: undefined method `<=>'' for class `ActiveSupport::Multibyte::Chars'' I found on someone''s blog that exact error message and it said to use 1.9.2-head, kno...
2006 Sep 19
1
No request.raw_post when using RJS template?
Hi all I wanted to try out the RJS thing for updating more than just one HTML element using AJAX. I have a selection like that: <select id="booking_musician_profile_id" name="booking[musician_profile_id]"> <option value="4" selected="selected">Danc!ng TortoYse</option> <option value="2">DJ Psyhigh</option>
2011 May 17
0
Select not maintaining state on nested form with
...o open to suggestions. I have also tried collection_select with no luck. <%= s.select :statistic_type_id, options_from_collection_for_select(StatisticType.all, :id, :name, selected_value_here), This is part of the context: <%= b.fields_for :players do |p| %> <%= p.label :player_id %> <%= collection_select :p, :player_id, Player.all, :id, :last_name, :include_blank => true %><br> <%= p.fields_for :statistics do |s| %> <%= s.label :statistic_id %> <%= s.select :statistic_type_id, options_from_co...
2013 Oct 02
2
Rails 4 ujs button only works after second click
..."Pin", {controller: "pinboard_players", action: "new", id: player}, remote: true, class: "pinbutton", id: "#{player.id}" %> *controller new action action:* def new session[:player] = params[:id] @pinboard_player = PinboardPlayer.new(player_id: params[:id]) @current_user_pinboards = get_user_pinboards respond_to do |format| format.html format.js end end When I click on the button, to display the select form, it takes two clicks for the javascript to work. -- You received this message because you ar...
2006 Jan 01
0
Join table with attributes
...," "played," or "favorite." However in searching online I find that, according to the rails wiki, join tables with attributes are problematic. I can use push_attributes to get that status attribute, but a delete operation would apparently kill all entries that match on the player_id and game_id columns, ignoring differences in status. Is this still an issue? Or has it been fixed in Rails 1.0? Is the usage different from what''s suggested on the wiki? (I can''t seem to find this link again, or I''d include it--my apologies.) --JB -------------- next par...