What I want is seems simple.
In my application helper i setup this
module ApplicationHelper def isroot if root_url @container = \"mainbox\" else @c
To test if you are at the site root:
current_page?('/')
or, if you defined map.root in your config/routes.rb:
map.root
config/routes.rb
current_page?(root_url)