BartlomiejSkwira
6/12/2013 - 10:11 AM

Reuse view code - content_for

Reuse view code - content_for

= content_for :script do
  = javascript_include_tag :defaults

#1. now do content_for :script to include js in selected views
#2. usable in helper modules