projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prettify the Customer pages
[cs356-p2-videostore.git]
/
app
/
helpers
/
application_helper.rb
diff --git
a/app/helpers/application_helper.rb
b/app/helpers/application_helper.rb
index
22a7940
..
4071221
100644
(file)
--- 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
# 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
end