Displaying 1 result from an estimated 1 matches for "pinboard_players".
Did you mean:
pinboard_player
2013 Oct 02
2
Rails 4 ujs button only works after second click
...*
$(''a.pinbutton'').on(''click'', function() {
$(this).parent().append(''<%= escape_javascript(render("select")) %>'')
});
*here''s the player index with the new link*
<%= link_to "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_pinboar...