{"issue":{"state":"open","created_at":"2011-09-26T12:24:36Z","updated_at":"2011-12-04T18:20:59Z","comments":6,"user":{"gravatar_id":"82890582bc10ffebe1ae4c7127effa01","id":175494,"url":"https://api.github.com/users/gucki","login":"gucki","avatar_url":"https://secure.gravatar.com/avatar/82890582bc10ffebe1ae4c7127effa01?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"When trying to use the new sass-rails helpers like \"image-path\" an exception occurs:\r\n\r\n    scss:\r\n      body {\r\n        background: image-url(\"body/1.png\");\r\n      }\r\n\r\nException:\r\n\r\n    ActionView::Template::Error in UsersController#show\r\n    \r\n    You have a nil object when you didn't expect it!\r\n    You might have expected an instance of Array.\r\n    The error occurred while evaluating nil.[]\r\n    \r\n    sass-rails (3.1.2) lib/sass/rails/helpers.rb:31:in `public_path'\r\n    sass-rails (3.1.2) lib/sass/rails/helpers.rb:15:in `asset_url'\r\n    sass-rails (3.1.2) lib/sass/rails/helpers.rb:25:in `image_url'\r\n    sass (3.1.7) lib/sass/script/funcall.rb:88:in `_perform'\r\n    sass (3.1.7) lib/sass/script/node.rb:40:in `perform'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:215:in `visit_prop'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:37:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:18:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `block in visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `map'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:27:in `block in visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:39:in `with_environment'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:26:in `visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:37:in `block in visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:235:in `visit_rule'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:37:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:18:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `block in visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `map'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:53:in `visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:27:in `block in visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:39:in `with_environment'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:26:in `visit_children'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:37:in `block in visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:47:in `visit_root'\r\n    sass (3.1.7) lib/sass/tree/visitors/base.rb:37:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:18:in `visit'\r\n    sass (3.1.7) lib/sass/tree/visitors/perform.rb:7:in `visit'\r\n    sass (3.1.7) lib/sass/tree/root_node.rb:20:in `render'\r\n    sass (3.1.7) lib/sass/engine.rb:293:in `_render'\r\n    sass (3.1.7) lib/sass/engine.rb:240:in `render'\r\n    tilt (1.3.3) lib/tilt/css.rb:24:in `evaluate'\r\n    tilt (1.3.3) lib/tilt/template.rb:76:in `render'\r\n    slim (1.0.2) lib/slim/embedded_engine.rb:124:in `render'\r\n    slim (1.0.2) lib/slim/embedded_engine.rb:100:in `on_slim_embedded'\r\n    slim (1.0.2) lib/slim/embedded_engine.rb:180:in `on_slim_embedded'\r\n    slim (1.0.2) lib/slim/embedded_engine.rb:82:in `on_slim_embedded'\r\n    (eval):43:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `block in on_multi'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `each'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `on_multi'\r\n    (eval):34:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/html/dispatcher.rb:19:in `on_html_tag'\r\n    (eval):27:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `block in on_multi'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `each'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `on_multi'\r\n    (eval):34:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/html/dispatcher.rb:19:in `on_html_tag'\r\n    (eval):27:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `block in on_multi'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `each'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:7:in `on_multi'\r\n    (eval):34:in `dispatcher'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:49:in `compile'\r\n    temple (0.3.4) lib/temple/mixins/dispatcher.rb:45:in `call'\r\n    temple (0.3.4) lib/temple/engine.rb:49:in `block in call'\r\n    temple (0.3.4) lib/temple/engine.rb:49:in `each'\r\n    temple (0.3.4) lib/temple/engine.rb:49:in `inject'\r\n    temple (0.3.4) lib/temple/engine.rb:49:in `call'\r\n    temple (0.3.4) lib/temple/templates/rails.rb:30:in `call'\r\n    actionpack (3.1.1.rc1) lib/action_view/template.rb:253:in `compile'\r\n    actionpack (3.1.1.rc1) lib/action_view/template.rb:190:in `compile!'\r\n    actionpack (3.1.1.rc1) lib/action_view/template.rb:143:in `block in render'\r\n    activesupport (3.1.1.rc1) lib/active_support/notifications.rb:55:in `instrument'\r\n    actionpack (3.1.1.rc1) lib/action_view/template.rb:142:in `render'\r\n    ...\r\n","assignee":null,"id":1739057,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":185,"labels":[{"color":"8f0d0d","name":"Bug","url":"https://api.github.com/repos/stonean/slim/labels/Bug"}],"title":"sass-rails support broken with rails 3.1.0","html_url":"https://github.com/stonean/slim/issues/185","closed_at":null,"url":"https://api.github.com/repos/stonean/slim/issues/185","milestone":null},"action":"created","comment":{"created_at":"2011-12-04T18:20:59Z","updated_at":"2011-12-04T18:20:59Z","user":{"gravatar_id":"768c4401e9e8dc378a841955a7df728a","id":50754,"url":"https://api.github.com/users/minad","login":"minad","avatar_url":"https://secure.gravatar.com/avatar/768c4401e9e8dc378a841955a7df728a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Ok, @gucki can you try this? You can set Sass options like this:\r\n\r\nSlim::EmbeddedEngine.set_default_options :sass => {sass option hash with correct sass-rails options}","id":3007873,"url":"https://api.github.com/repos/stonean/slim/issues/comments/3007873"}}