-
Notifications
You must be signed in to change notification settings - Fork 30
Asset Pipeline + Stack Level to Deep
yozlinden edited this page Sep 5, 2012
·
3 revisions
If you’re plagued by “SystemStackError: stack level too deep”:
- Disable assets pipline(`config.assets.enabled = false`) in application.rb.
- Don’t require `sass-rails` but instead require `sass` in Gemfile.
application.html.erb
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/application.js" type="text/javascript"></script>
config.ru
require ::File.expand_path('../config/environment', __FILE__)
builder = Rack::Builder.new do
map '/assets' do
environment = Sprockets::Environment.new
environment.append_path 'app/assets/javascripts'
environment.append_path 'app/assets/stylesheets'
run environment
end
map '/' do
use Rack::FiberPool, :size => 6
run YourApp::Application
end
end
run builder