Prettify the video section of the application
[cs356-p2-videostore.git] / app / helpers / application_helper.rb
index 22a7940..4071221 100644 (file)
@@ -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