lucasmazza/ruby-stylus — Issue #15: Stylus breaking when Rails asset pipeline turned off
Author: activestylus
Created: 2012-01-05 23:15:19+00:00
State: open

I have disabled the asset pipeline (due to the fact that I have my own asset framework) and cannot get stylus to work with Rails 3.1.3

I've added `gem 'stylus'` to my Gemfile and then did a `bundle install`. Now I cannot boot the application:

```
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `register_engine' for nil:NilClass (NoMethodError)
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/stylus-0.4.0/lib/stylus/railtie.rb:13:in `block in '
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/homebass/apps/fineprint/config/environment.rb:5:in `'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/homebass/apps/fineprint/config.ru:4:in `block in

'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
from /Users/homebass/apps/fineprint/config.ru:1:in `new'
from /Users/homebass/apps/fineprint/config.ru:1:in `

'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in '
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
from /Users/homebass/.rvm/gems/ruby-1.9.3-p0@fp/gems/railties-3.1.3/lib/rails/commands.rb:49:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```