mardi 24 novembre 2015

Rails add dynamic attribute on data content helper link

i need to get a ajax tooltip on a dynamic link, so the logic seems to concatenate it. but, still not work, so, someone know a way to do this?

thank's

<%= link_to "Profile", edit_user_path(current_user), :class =>"ttooltip",   :data => {:url => "/users/#{@current_user}/links"}    %>

Aucun commentaire:

Enregistrer un commentaire