search for: add_contact_path

Displaying 1 result from an estimated 1 matches for "add_contact_path".

2010 Aug 16
8
Executing js.erb file with :format =>'js'
Hi, I''m trying to get my javascript to execute after clicking a link on my page using :format => "js" here''s my link: <%= link_to image_tag("/images/icons/user_add.png"), add_contact_path(:profile_id => profile.id, :url => request.url, :format => "js"), :title => "Add person to your contacts"%> in my controller i have format.js here''s my add_contact.js.erb: $("#contact_icon_<%=params[:profile_id]%>").html("Contact A...