I have a silly question. I have a form that is filled out that has a
number of boolean values in it, represented by checkboxes. After the
request is posted, I am generating an e-mail to send to the person
handling the request.
In my mailer view (send_request.text.plain.rhtml), I do something like
Important thing one…: <%= @req.important_thing_1 %>
Important thing two…: <%= @req.important_thing_2 %>
Important thing three: <%= @req.important_thing_3 %>
Which is rendered as
Important thing one…: false
Important thing two…: true
Important thing three: false
I would like false to display as ‘No’ and true to display as ‘Yes’. Is
there a knob or switch somewhere in rails to configure how boolean
values are converted into strings?