Dynamic Menu's

It is possible have dynamic menu’s in my views?

for example, in the following menu code:

that’s easy to do in RoR

maybe put the menu-info in an array of hashes like {:href => “…”,
:title => “…”} named my_menu

gemblon (t.b.) said the following on 19/12/07 10:22 AM:

array.
Something like:

  • A...
  • B...

    i can add the loop to generate the number of menu’s.

    has anybody done this?

  • See Tabnav
    Presentation at
    http://rails-widgets.googlegroups.com/web/rails-widgets-by-paolo-dona-at-railstoitaly-1193755397633919-4.pdf?gda=iUGBB3MAAADb_C9p6lwGsSLQNhI574fnNIwcRGMoSRrwpWzU9i2Ob2G1qiJ7UbTIup-M2XPURDQIpv1h7sibZLIapAuXd7Eg2CpAaV13DJbYJizNBsaZtd78gbToY9QXWVXc5zZBP3wAY6FChiKhqEwrEf-plYaiK4YoAX3ERE0DC1UD-MzSMQ

    Install:
    ruby script/plugin install svn://svn.seesaw.it/widgets/trunk


    “Politics is the art of appearing candid and completely open, while
    concealing as much as possible.”
    – Brian Herbert,

    Thorsten M. wrote:

    that’s easy to do in RoR

    maybe put the menu-info in an array of hashes like {:href => “…”,
    :title => “…”} named my_menu

    thanks. worked great. used the array of hashes.

    This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

    | Privacy Policy | Terms of Service | Remote Ruby Jobs