rails/rails — Issue #4041: Sass::Syntax Error trying to import partials under 3.2-rc1
Author: rnhurt
Created: 2011-12-20 02:37:59+00:00
State: open

I am getting the following error upon trying to import partials into my application.scss file. Everything worked fine with Rails 3.1.3. The partials are in the `app/assets/stylesheets/partials` directory and are named with a beginning underscore `_globals.cs.scss`.

````
Sass::SyntaxError in Sessions#new

Showing /home/rnhurt/src/rails/mfp/app/views/layouts/sessions.html.haml where line #11 raised:

File to import not found or unreadable: partials/globals.
Load path: /home/rnhurt/src/rails/mfp
(in /home/rnhurt/src/rails/mfp/app/assets/stylesheets/application.scss)
Extracted source (around line #11):

8: %meta{:name => "viewport", :content => "width=device-width,initial-scale=1"}
9: %title= "Dingo #{yield :title}"
10:
11: = stylesheet_link_tag "application"
12: = csrf_meta_tags
13:
14: %body#login
Rails.root: /home/rnhurt/src/rails/mfp

Application Trace | Framework Trace | Full Trace
app/assets/stylesheets/application.scss:74
app/views/layouts/sessions.html.haml:11:in `_app_views_layouts_sessions_html_haml___469055171_85868090'
Request

Parameters:

None
Show session dump

_csrf_token: "aefWeSV4UK2mEtvrVPIOr/NYyK1glB2AfMojcdMfl/M="
flash: #, @closed=false, @flashes={:alert=>"Not authorized!"}, @now=nil>
last_action_time: Tue, 20 Dec 2011 02:33:27 UTC +00:00
return_to_url: "http://localhost:3000/contacts"
session_id: "2a886d4278ecf792ae7d90560171ec30"
Show env dump

GATEWAY_INTERFACE: "CGI/1.2"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8"
HTTP_CACHE_CONTROL: "max-age=0"
REMOTE_ADDR: "127.0.0.1"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None
````