<% if attr_listing.size > 0 %>
  <div id="attr_details">
    <h2>Attribute Details</h2>
    <% attr_listing.each_with_index do |meth, i| %>
      <% rw = meth.namespace.attributes[meth.scope][meth.name] %>
      <span id="<%= anchor_for(rw[:write]) %>"></span>
      <span id="<%= anchor_for(rw[:read]) %>"></span>
      <%= yieldall :object => meth, :index => i %>
    <% end %>
  </div>
<% end %>

<% if attr_listing.size > 0 %>
  <div id="attr_details">
    <h2>Attribute Details</h2>
    <% attr_listing.each_with_index do |meth, i| %>
      <% rw = meth.namespace.attributes[meth.scope][meth.name.to_s.gsub(/=$/, '').to_sym] %>
      <span id="<%= anchor_for(rw[:write]) %>"></span>
      <span id="<%= anchor_for(rw[:read]) %>"></span>
      <%= yieldall :object => meth, :index => i %>
    <% end %>
  </div>
<% end %>

Fix issue with writeonly attributes
Fix issue with writeonly attributes
