X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fhelpers%2Fapplication_helper.rb;h=40712213da19303e9887e4b75c33e0c9cd0ee511;hb=d9ccb8cf52aee119343545cb734e185580daf352;hp=22a7940eb213fec161352153800c9c6948c8b43c;hpb=344d975e26054e2f69ee044c80a8b3232145cd47;p=cs356-p2-videostore.git diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22a7940..4071221 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,9 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHelper + + # Convert true and false to "Yes" and "No" + def tf_to_yesno(value) + return value ? "Yes" : "No" + end + end