Make sidebar generator Rails 3 compliant.
Merge pull request #492 from publify/issue-fix-sidebar-generator

Make sidebar generator Rails 3 compliant.