Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ul_tag(collection,li_options = {},ul_options={})
- list_items = collection.map{|item|
- result = yield(item)
- content_tag(:li,result,li_options)
- }.join
- content_tag(:ul,list_items,ul_options)
- end
Add Comment
Please, Sign In to add comment