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:
<div id="menuwrapper">
      <div class="tabArea">
         <%= link_to 'Link', {:action => 'update', :controller =>
'welcome'},{:class=>"tab",:remote=>true} %>
      </div>
</div>
<div id="wrapper2">
    <!-- Where I want the html fragment-->
</div>

____________________
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.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to