class Publications::Users::CategoriesController < ApplicationController
  def show
    @user     = User.find(params[:user_id])
    @category = @user.publication_categories.find(params[:id])
    @posts    = @category.publication_posts
  end
end

class Publications::Users::CategoriesController < ApplicationController
  def show
    @user     = User.find(params[:user_id])
    @category = @user.publication_categories.find(params[:id])
    @posts    = @category.publication_posts.visible
  end
end

Hide invisible posts in user categories
Hide invisible posts in user categories
