Forum: Typo Fixing broken themes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 Piers Cawley (Guest)
on 2006-04-10 19:35
(Received via mailing list)
Some time ago (I thought it was in pre 2.6.0 days, but apparently
not), we added a 'render_sidebars' helper method, so that theme
authors wouldn't have to go typing:

  <%= render_component(:controller => 'sidebars/sidebar',
                       :action => 'display_plugins' %>

in their themes. It also had the advantage of encapsulation; if theme
authors used 'render_sidebars' then we could change the details of how
sidebars got rendered with impunity and we wouldn't break any
compliant themes.

And, in revision 1003, we did exactly that.

Except, it turns out that an awful lot of themes aren't compliant. So,
if your theme is playing up with recent trunk rails, you need to look
in your /themes/<whatever>/layouts/default.rhtml, find the part that
renders the sidebar using render_component, replace it with
<%= render_sidebars %>, sit back and take quite satisfaction in the
wonder that is encapsulation.
A4852818d512c2ed472bdb0ec3e21102?d=identicon&s=25 Urban Hafner (Guest)
on 2006-04-10 21:50
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 10 Apr 2006, at 19:31, Piers Cawley wrote:

> compliant themes.
Hooray, it works again. Thanks Piers.

Urban
- --
http://bettong.net - Urban's Blog


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFEOrYwggNuVCIrEyURAvJQAJ0XczwkqB8+5uqj53sQ9HKYMD7f+ACfZCPD
w4ikm/p4A/m4hJSiMIju3IY=
=jcjb
-----END PGP SIGNATURE-----
This topic is locked and can not be replied to.