ruby on rails - SASS in Sinatra: couldn't set custom directory -
i've read sinatra sass custom directory , sinatra custom sass directory .
but doesn't work me. write app:
require 'sinatra' require 'sass' require 'slim' configure set :views, :scss => 'assets/css' end '/css/*.css' scss params[:splat].first.to_sym end '/' slim :index end
when i'm running error:
http://localhost:3000/css/style.css typeerror @ /css/style.css no implicit conversion of hash string
it's vice versa, first :scss
symbol , :views
:
configure set :scss, :views => 'assets/css' end
Comments
Post a Comment