My suggested solution to your problem would be to:
Write a helper method on your config.rb which looks at the current path and parses it to give you something to write statements off of. Something like:
helpers do
def page_name
if request.path_info.match(/about/)
:about
else
:other
end
end
Then in templates:
<% if page_name == :about %>
Alternatively, you can use different layouts for different pages.