I have a simple helper function containing this to spit out a list of links from a hash:

...
  links.each_pair do |label, link|
    li { a label, :href => link }
  end
...

my hash elements are (obviously):

'Link label' => 'http-link',

I'd now like to add a 'strong' tag around some of the text in the labels (which I didn't foresee), but the tag would be within the hash key. Ideas? Warnings?

DaveE

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to