ruby on rails - How do I include CSS from a gem using SASS instead of Sprockets? -
i want use jquery-ui-rails gem in rails project, i'm using sass imports css. how should import css jquery ui?
the css.erb files under ruby installation path hierarchy , guess asset pipeline magic making them available when serve app. don't see them anywhere in project path.
i understood should use sass @import
statements exclusively instead of mixing them sprockets *= require
directives.
should use jquery-ui-sass-rails gem, or redundant since css files available in jquery-ui-rails gem?
i'm using ruby 2.0.0, rails 4.0.3. i'm developing on windows 8.1 , hosting on heroku.
the answer use jquery-ui-sass-rails it's not redundant. it's designed work jquery-ui-rails , uses dependency.
one gotcha discovered can't have both jquery-ui-rails , jquery-ui-sass-rails in gemfile because jquery-ui-sass-rails depends on specific version of jquery-ui-rails , there version mismatch. need put jquery-ui-sass-rails gemfile , pulls in correct version of jquery-ui-rails dependency.
this in readme jquery-ui-sass-rails, didn't read closely enough.
Comments
Post a Comment