app/controllers/wall_comments_controller.rb
# Return the URL for the resource comments.
Return the URL for the resource comments.
Return the URL for the resource comments .
def wall_comments_url
      if wall?
        profile_url(@user)
      elsif group_wall?
        group_url(@wall_comment.commentable)
      elsif blog?
        blog_post_url(@blog, @post)
      elsif photo?
        if @photo.owner_type == "User"
          user_photo_url(@photo.owner, @photo)
        elsif @photo.owner_type == "Group"
          group_photo_url(@photo.owner, @photo)
        end
      elsif event?
        event_url(@event)
      elsif news_item?
        if @news_item.newsable_type == "Group"
          group_news_url(@news_item.newsable, @news_item)
        elsif @news_item.newsable_type == "Widget"
          member_story_url(@news_item)
        elsif @news_item.newsable_type == "Site"
          news_url(@news_item)
        end
      end
    end
def wall_comments_url if wall? profile_url ( @user ) elsif group_wall? group_url ( @wall_comment . commentable ) elsif blog? blog_post_url ( @blog , @post ) elsif photo? if @photo . owner_type == "User" user_photo_url ( @photo . owner , @photo ) elsif @photo . owner_type == "Group" group_photo_url ( @photo . owner , @photo ) end elsif event? event_url ( @event ) elsif news_item? if @news_item . newsable_type == "Group" group_news_url ( @news_item . newsable , @news_item ) elsif @news_item . newsable_type == "Widget" member_story_url ( @news_item ) elsif @news_item . newsable_type == "Site" news_url ( @news_item ) end end end
Return the URL for the resource comments.
Return the URL for the resource comments .