lib/assemblage.rb
def javascript_include_bundles(bundles)
      output = ""
      
      bundles.each do |bundle|
        output << javascript_include_tag("bundle_#{bundle}") + "\n"
      end
      
      output.html_safe
    end
# This method assumes you have manually bundled js using a rake command
# or similar. So, there better be bundle_* files!
This method assumes you have manually bundled js using a rake command
or similar. So, there better be bundle_* files!
This method assumes you have manually bundled js using a rake command or similar . So there better be bundle_ * files!
def javascript_include_bundles(bundles)
      output = ""
      bundles.each do |bundle|
        output << javascript_include_tag("bundle_#{bundle}") + "\n"
      end
      output.html_safe
    end
def javascript_include_bundles ( bundles ) output = "" bundles . each do | bundle | output << javascript_include_tag ( "bundle_#{bundle}" ) + "\n" end output . html_safe end
This method assumes you have manually bundled js using a rake command
or similar.
This method assumes you have manually bundled js using a rake command or similar .
bundles