Instead of serving the Sass files from the default views directory, I would like to change this to /assets/sass
In my main ruby ββroot file in the application, the following attempts:
Attempt 1:
set :sass, Proc.new { File.join(root, "assets/sass") } get '/stylesheet.css' do sass :core end
With this, I get the following error:
myapp.rb:17 NoMethodError: undefined method `merge' for "/Users/x/x/x/mysinatraapp/assets/sass":String
Attempt 2:
get '/stylesheet.css' do sass :'/assets/sass/core' end
Attempt 3:
get '/stylesheet.css' do sass :'/assets/sass/core' end
Both return the following error:
Errno::ENOENT: No such file or directory - ./views/assets/sass/core.sass
Attempt 4:
get '/stylesheet.css' do sass :'../assets/sass/core' end
It works! however, should there be something like the lines set :sass, Proc.new { File.join(root, "assets/sass") } that sets this for me?
source share