Make sidebar generator Rails 3 compliant.

... maybe this was the reason no-one made sidebars ...

:dolphin:  :dolphin: :dolphin: