Displaying 1 result from an estimated 1 matches for "current_user_pinboards".
2013 Oct 02
2
Rails 4 ujs button only works after second click
...uot;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 are subscribed to the Google Groups "Ruby...