I am struggling with a strange effect when using two partials
This is show.html.erb
   <div>
     <h2>posts commented on by <%= @user.login %></h2>
     <%= render :partial => @posts_commented_on %>
     <h2>Posts submitted by <%= @user.login %></h2>
     <%= render :partial => @posts_submitted %>
   </div>

This is the relevant bit of users.html.erb
   <div id="useryield">
     <%= yield %>
   </div>

This is from users_controller.rb
   def show
    @user = User.find(params[:id])
    @posts_submitted = @user.posts.find(:all,
        :limit => 6, :order => 'posts.id DESC')
    @posts_commented_on = @user.posts_commented_on.find(:all,
        :limit => 2, :order => 'comments.id DESC')
   end

Can anybody tell me where the div, that splits submitted from comments,
appears from?

Attachments:
http://www.ruby-forum.com/attachment/4737/Screenshot.png

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to