Finished chapter 9
[depot.git] / app / helpers / store_helper.rb
1 module StoreHelper
2
3 def hidden_div_if(condition, attributes = {}, &block)
4 if condition
5 attributes["style"] = "display: none"
6 end
7 content_tag("div", attributes, &block)
8 end
9
10 end