Skip to content

Loading…

SprocketsHelper doesn't respect the old helpers api #1237

Closed
lucasmazza opened this Issue · 3 comments

3 participants

@lucasmazza
Ruby on Rails member

sprockets_javascript_include_tag doesn't respect the api defined by javascript_include_tag when adding multiple sources, as in javascript_include_tag 'one', 'two', 'three' - I believe that the same happens with the stylesheet helpers.

@josh

This is an intention change. You really shouldn't need to have 10 script tag links because you can declare them to be all part of the same bundle.

@josh josh closed this
@lucasmazza
Ruby on Rails member

Anyway, the lack of flexibility gets in the way of a more modular usage (2/3 tags per page, maybe).

@spohlenz

+1 to allowing multiple scripts/stylesheets. Whilst bundles are fine for most situations, this seems like a pointless regression in functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.