page.replace_html for entire div not partial?
- by odpogn
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>