Flexible menu generator for rails