Sha256: 32ff46977505e696aae099b0dc081f26e43ce3ad9efb595301b8b6599ba49ddf
Contents?: true
Size: 425 Bytes
Versions: 7
Compression:
Stored size: 425 Bytes
Contents
# -*- encoding : utf-8 -*- module MdwaHelper def pagination_footer( object_list ) html = [] html.push '<div id="pagination">' html.push will_paginate object_list html.push '</div></div>' return html.join('').html_safe end def encode_results_to_autocomplete(results, field_name) return results.collect{ |c| "{label: '#{c.send field_name}', value: '#{c.id}'}" }.join( ',' ) end end
Version data entries
7 entries across 7 versions & 1 rubygems