app/controllers/wall_comments_controller.rb
# Return the comments array for the given resource.
Return the comments array for the given resource.
Return the comments array for the given resource .
def resource_comments
      if wall?
        @user.wall_comments
      elsif blog?
        @blog = Blog.find(params[:blog_id])
        @post = Post.find(params[:post_id])
      elsif photo?
        @photo.wall_comments
      elsif event?
        @event.wall_comments
      end  
    end
def resource_comments if wall? @user . wall_comments elsif blog? @blog = Blog . find ( params [ :blog_id ] ) @post = Post . find ( params [ :post_id ] ) elsif photo? @photo . wall_comments elsif event? @event . wall_comments end end
Return the comments array for the given resource.
Return the comments array for the given resource .