Sha256: 011f2c78b7b460328d15a4232378b273c2f9b8f2a3cb3eaabdd8ae358ce1cd66
Contents?: true
Size: 1.26 KB
Versions: 45
Compression:
Stored size: 1.26 KB
Contents
<style> .alert { color: red; } .notice { color: green; } </style> <% flash.each do |type, msg| %><div class="<%= type %>"><%= msg %></div><% end %> <% if flash.any? %><hr /><% end %> <h1>Phony rails</h1> <h2>This Gem adds useful methods to your Rails app to validate, display and save phone numbers.</h2> <hr /> <pre> <code> PhonyRails.normalize_number('0211112222', country_code: 'AU') PhonyRails.normalize_number('0424001122', country_code: 'AU') PhonyRails.normalize_number('+4790909090', default_country_code: 'SE') </code> </pre> <pre> <code> <%= PhonyRails.normalize_number('0211112222', country_code: 'AU') %> <%= PhonyRails.normalize_number('0424001122', country_code: 'AU') %> <%= PhonyRails.normalize_number('+61424001122', default_country_code: 'AU') %> </code> </pre> <hr /> <pre> <code> "311012341234".phony_formatted(format: :international, spaces: '-') "+31-10-12341234".phony_formatted(format: :international, spaces: '-') "+31(0)012341234".phony_formatted(format: :international, spaces: '-') </code> </pre> <pre> <code> <%= "311012341234".phony_formatted(format: :international, spaces: '-') %> <%= "+31-10-12341234".phony_formatted(format: :international, spaces: '-') %> <%= "+31(0)012341234".phony_formatted(format: :international, spaces: '-') %></code> </pre>
Version data entries
45 entries across 45 versions & 1 rubygems