page.replace_html for entire div not partial?
Posted
by
odpogn
on Stack Overflow
See other posts from Stack Overflow
or by odpogn
Published on 2010-12-31T09:50:14Z
Indexed on
2010/12/31
9:54 UTC
Read the original article
Hit count: 241
My sites navigation is within my <%= render 'layouts/header' %>. I want to use ajax so that when a user clicks on a navigation link, only the refreshes. is not a partial, is there a way to refresh the content of that div without using a partial?
<div id="container">
<%= render 'layouts/header' %>
<div id="content">
<% flash.each do |key, value| %>
<div class="flash <%= key %>"><%= value %></div>
<% end %>
<%= yield %>
</div>
</div>
© Stack Overflow or respective owner