Dave Everitt | 4 May 2012 16:24
Picon
Gravatar

mab advice

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

Gmane