I am adding a rails image_tag with jQueryand I am trying to put a jQueryvariable in the image_tag.
var variable = 0;
$(targetPlayerElement).html('<%= image_tag @users[variable].profile_picture
I am getting undefined local variable or method `variable' error. What is the correct syntax to do this if you even can. thank you for all the help.
@users?