This post originated from an RSS feed registered with Ruby Buzz
by Agnieszka Figiel.
Original Post: Pretty404 goes evil
Feed Title: agnessa's blog
Feed URL: http://blog.agnessa.eu/xml/rss/feed.xml
Feed Description: ruby and rails impressions from a beginner developer
So I used Piers’ suggestion to make Pretty404 evil :) I modified the pretty_404 method to dynamically overwrite the sidebars method in the blog object as he suggested in his comment to the first Pretty404 post. This is absolutely evil but beautiful – the sidebars get rendered as usual while browsing the blog,but when hitting the pretty 404 page they are empty. This way I can easily render the 404 page with layout, no worries about finding the stylesheets for the 404 page etc. Thanks Piers :)