Rails 3 render and method call in another controller
        Posted  
        
            by akam
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by akam
        
        
        
        Published on 2010-06-09T15:37:38Z
        Indexed on 
            2010/06/09
            15:42 UTC
        
        
        Read the original article
        Hit count: 233
        
Hello,
I am using rails 3:
I would like to render a portion of view which is build by a 'notification' method in message class
so I've add in my application.html.erb :
<li><%= render :action => "notification", :controller => "messages" %></li>
The goal of my file notification.html.erb is to display in a red circle the number of notifications in all my pages.
I don't think I am in the good way, any ideas ?
Thanks all :)
© Stack Overflow or respective owner