Accessing js from controller

Hi!
I’ve been struggling with a ajax/jquery html fraction update for a
couple of days now, can’t seem to get my head around it.
I can’t get my update.js.erb file to run, this is how my relevant files
look like:


The view:

<%= link_to 'Link', {:action => 'update', :controller => 'welcome'},{:class=>"tab",:remote=>true} %>

Welcome_controller:
def update
end


Route:
get “welcome/update”


update.js.erb:
$(’#wrapper2’).html("<%= escape_javascript render(:file => ‘c.html.erb’)
%>");

Would appreciate any help I could get! Thank you.