Meta tags are one of the important aspect for any site. And RoR having the power for clean urls setting up proper meta tags will really do wonders for the site.
So here is the method to setup the meta tags dynamically for all the pages
Here’s what I do (and it’s just one way of many) :
In my layout/application.rhtml1 |
|
In my application controller:
1 | before_filter :meta_defaults |
1 | def view |
There are many other ways to do it..If there is a better way that you have pls share ur views below.
No comments:
Post a Comment