I'm trying to create a modal window window containing detailed information.
preguntado el 03 de mayo de 12 a las 16:05
As noted in the comment, you were missing the quotes in
alert("<%= @player.name %>");.
You have everything else set up correctly - so you can access @player attributes in your player_info.js.erb like so: