Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 516 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 516 Bytes

Salutations Gem Version

Salutations contains a list of salutations (Mr, Mrs, Ms, etc) - sometimes also known as prefixes or honorifics - for usage in forms, and ordered by usage.

To use in a form:

<%= f.select(:salutation, options_for_select(Salutations::get)) %>

You can also select Salutations by theme like so:

Salutations::FORMAL
=> ["Sir", "Madam", "Dame", "Lord", "Lady", "Viscount"]