Rails 3 render and method call in another controller
- by akam
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 :)