I need to create user notification like facebook notificaiton.
Manish sent you a friend request.
Ryan accepted your friend request.
in an overlay div.
Now, I wish to ask you Where (which controller, Should I write code). and How should I call that in aplication.html.haml view.
Note: As Notification will be shown in all pages of the site.
Write the code in the application controller as this code should be common and applicable to all. Declare the helper method in your application controller to make it accessible in the view.
It should be like following as a general idea –
Now in your application.html.erb view, simply call this method.