Private pub issue in rails application
问题 I have article model and i want to show a notification such as a flash message on the home page to the users when they log in or who is logged in already when a new article is posted using private_pub gem articles_controller.rb class ArticlesController < ApplicationController def index @articles = Article.all @articles_grid = initialize_grid(Article, :include => [:user]) end def show @article = Article.find(params[:id]) @comment = Comment.new end def new @article = Article.new end def create