The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Pretty404 goes evil

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Agnieszka Figiel

Posts: 50
Nickname: agnessa
Registered: Feb, 2006

Agnieszka Figiel is a Ruby on Rails programmer & coach
Pretty404 goes evil Posted: May 31, 2007 1:52 PM
Reply to this message Reply

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
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Agnieszka Figiel
Latest Posts From agnessa's blog

Advertisement

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 :)

Read: Pretty404 goes evil

Topic: Testing: Unit Test or Functional Test Previous Topic   Next Topic Topic: The Agile Experience in San Jose

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use