On Tuesday, April 16, 2013 3:51:37 PM UTC-4, Vell wrote:
>
> Hello all,
>
> I'm trying to understand how to include a stylesheet that is inside a sub 
> directory in my css assets folder.
>
> The folder to include is app/assets/css/fonts - folder of fonts and a 
> stylesheet.css
>

****Sorry guys. I failed to mention that this is a rails 3.2.12 app running 
ruby uby-1.9.3-p392 

>
> In my app/assets/css/application.css.scss I have included the following 
> line:
>
> *= require fonts/stylesheet.css
>
> Then when I precompile I get the following:
>
> Compiled fonts/stylesheet.css  (0ms)  (pid 30638)
>
> But when I hit my app from the browser I get the following:
>
> An ActionView::Template::Error occurred in ......:
>
>   fonts/stylesheet.css isn't precompiled
>   actionpack (3.2.13) lib/sprockets/helpers/rails_helper.rb:142:in 
> `digest_for'
>
> So I guess my questions is, what is the proper way to include this 
> stylesheet (and font files) so that all works as it should and I don't have 
> to hack around this.
>
> Any help is greatly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/5iAM-RP9SVYJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to