<% @blocks['top'].each do |b| %>
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
<% end if @blocks['top'] %>
<% @blocks['left'].each do |b| %>
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
<% end if @blocks['left'] %>
<% @blocks['right'].each do |b| %>
<%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %>
<% end if @blocks['right'] %>