Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NoMethodError on line ["32"] lib/sass/rails/helpers.rb: undefined method '' for nil:NilClass #121
That code in question is this:
31: def resolver 32: options[:custom][:resolver] 33: end
I added a
def resolver binding.pry if options[:custom].nil? options[:custom][:resolver] end
Ok. On a hunch, I enabled the asset pipeline. Now it seems to work. I think this is because the Resolver is not correctly enabled without it. It appears that the template_handler is not used at all without the asset pipeline being enabled. but it could also be something janky in compass... I'm not sure. Stil digging.
This was referenced
Jan 18, 2013
referenced this issue
Apr 30, 2013
pushed a commit
Dec 10, 2013
This bit me the other day while I was trying to deploy to a staging env. I just tried to reproduce it with the latest rails (4.1.4) and sass-rails but I'm unable to repro it now. If anyone could provide me with a failing test app, I could spend time improving the exception message. Cheers.
I got this error trying to precompile assets in Rails 3 (with sass-rails-3.2.6) using Uglifier 2. Since Uglifier 2 is declared as backwards-incompatible, I guess it might simply be that these versions of these libs are incompatible. Rails 3 can't use a later version of sass-rails.