X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fhelpers%2Fapplication_helper.rb;fp=app%2Fhelpers%2Fapplication_helper.rb;h=40712213da19303e9887e4b75c33e0c9cd0ee511;hb=f5428b31e180b85713a3d2358a2dade29a19aeb9;hp=22a7940eb213fec161352153800c9c6948c8b43c;hpb=38bf6e867a85ce3283a5b696bfa54afc63fa75bd;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