Heinz Strunk
2011-Nov-01 09:58 UTC
Rails 3.1, stylesheet assets not being reloaded correctly?
Hi, I''m working on a Rails 3.1 project at the moment and having a hard time getting the stylesheets properly loaded. My application.css.scss looks like this: /* * This is a manifest file that''ll automatically include all the stylesheets available in this directory * and any sub-directories. You''re free to add application-wide styles to this file and they''ll appear at * the top of the compiled file, but it''s generally better to create a new file per style scope. *= require application-pre *= require_self *= require application-post *= require formtastic */ body { background-color: #000; } which is being served just fine: Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01 10:57:08 +0100 Served asset /application.css - 304 Not Modified (0ms) No I change background-color to #fff and it seems to be served right: Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01 10:57:55 +0100 Served asset /application.css - 200 OK (5ms) But the page looks still exactly the same and when I look into the CSS file it still says #000. Does anyone know what''s wrong here? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
iGbanam
2011-Nov-02 06:49 UTC
Re: Rails 3.1, stylesheet assets not being reloaded correctly?
Are you caching the Stylesheets in your layout? On Nov 1, 5:58 am, Heinz Strunk <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I''m working on a Rails 3.1 project at the moment and having a hard time > getting the stylesheets properly loaded. > > My application.css.scss looks like this: > /* > * This is a manifest file that''ll automatically include all the > stylesheets available in this directory > * and any sub-directories. You''re free to add application-wide styles > to this file and they''ll appear at > * the top of the compiled file, but it''s generally better to create a > new file per style scope. > *= require application-pre > *= require_self > *= require application-post > *= require formtastic > */ > > body { > background-color: #000; > > } > > which is being served just fine: > Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01 > 10:57:08 +0100 > Served asset /application.css - 304 Not Modified (0ms) > > No I change background-color to #fff and it seems to be served right: > Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01 > 10:57:55 +0100 > Served asset /application.css - 200 OK (5ms) > > But the page looks still exactly the same and when I look into the CSS > file it still says #000. Does anyone know what''s wrong here? > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- assest pipeline how to exclude some css files?
- 3.1 asset pipeline + Capistrano troubles
- rake assets:precompile issue with JS and stylesheets files with similar name
- Asset Pipeline doubles my CSS refs?
- Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.