Re: CSS files not updating

2009-01-14 Thread Keenan Brock

below
On Jan 14, 2009, at 3:15 PM, DAZ wrote:

>
> Thanks for the feedback Keenan,
> I am running in development mode. I figured that it was because I was
> updating a stylesheet that was imported from the stylesheet that was
> linked from the layout file, but even when I update this file, the CSS
> doesn't update, so there still seems to be some sort of problem that
> is infuriating!
Yes, doing the once removed @import makes stuff tricky.
The browser very often refuses to reload the pages, even if you ask  
nicely.
Sometimes clearing the browser cache, closing the browser, and  
reopening it is the only way.

The rails trick of adding the extra bit to the end of the style sheet  
only works with sheets included directly from the page (AND using the  
rails tag)
>
>
> Thanks for the idea of using content_for - I'll use that in future,
> but it would be nice to know how to get the external css files to have
> a more instant effect.
>
I think you'll have to take that up with the ie and firefox people. :)

> cheers,
>
> DAZ
>
>
>
> On Jan 8, 6:15 pm, Keenan Brock  wrote:
>> Hi DAZ,
>>
>> You may want to run in development mode?
>>
>> In development mode, the stylesheet tag, tweaks the stylesheet name
>> different style.css?1242346 - that last number is based upon the mod
>> date of the stylesheet . So when you change the sheet, the browser
>> requests a different file and you don't have that problmem.
>>
>> Sometimes when I am working with stylesheets, I make the mods  
>> directly
>> in my individual page rather than in the main applicaiton file.
>>
>> in my layout I typically have a
>>
>> 
>> ...
>> <%= stylesheet_link_tag 'application' %>
>> <%= yield :header -%>
>>
>> and on my individual page I'll have:
>>
>> <% content_for :head do %>
>> 
>> 
>> <% end -%>
>>
>> I tweak the css in the individual page until things are what I want.
>> Then I cut and paste that stuff into the public/stylesheets/
>> application.css file.
>> [I usually use the application name and not the word 'applicaiton'  
>> but
>> everyone does things a little differently.]
>>
>> Hope that helps,
>> Keenan
>>
>> On Jan 8, 2009, at 6:13 AM, DAZ  wrote:
>>
>>
>>
>>> I'm having a bit of trouble with CSS files not always displaying the
>>> most recent styles after I edit the file. The stylesheets seem to be
>>> being cached on the server side (clearing my browser cache seems to
>>> make no difference). Is there any way to get the app to use the most
>>> up to date CSS files?
>>
>>> cheers,
>>
>>> DAZ
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: CSS files not updating

2009-01-14 Thread DAZ

Thanks for the feedback Keenan,
I am running in development mode. I figured that it was because I was
updating a stylesheet that was imported from the stylesheet that was
linked from the layout file, but even when I update this file, the CSS
doesn't update, so there still seems to be some sort of problem that
is infuriating!

Thanks for the idea of using content_for - I'll use that in future,
but it would be nice to know how to get the external css files to have
a more instant effect.

cheers,

DAZ



On Jan 8, 6:15 pm, Keenan Brock  wrote:
> Hi DAZ,
>
> You may want to run in development mode?
>
> In development mode, the stylesheet tag, tweaks the stylesheet name  
> different style.css?1242346 - that last number is based upon the mod  
> date of the stylesheet . So when you change the sheet, the browser  
> requests a different file and you don't have that problmem.
>
> Sometimes when I am working with stylesheets, I make the mods directly  
> in my individual page rather than in the main applicaiton file.
>
> in my layout I typically have a
>
> 
> ...
> <%= stylesheet_link_tag 'application' %>
> <%= yield :header -%>
>
> and on my individual page I'll have:
>
> <% content_for :head do %>
> 
> 
> <% end -%>
>
> I tweak the css in the individual page until things are what I want.
> Then I cut and paste that stuff into the public/stylesheets/
> application.css file.
> [I usually use the application name and not the word 'applicaiton' but  
> everyone does things a little differently.]
>
> Hope that helps,
> Keenan
>
> On Jan 8, 2009, at 6:13 AM, DAZ  wrote:
>
>
>
> > I'm having a bit of trouble with CSS files not always displaying the
> > most recent styles after I edit the file. The stylesheets seem to be
> > being cached on the server side (clearing my browser cache seems to
> > make no difference). Is there any way to get the app to use the most
> > up to date CSS files?
>
> > cheers,
>
> > DAZ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: CSS files not updating

2009-01-08 Thread Keenan Brock
Hi DAZ,

You may want to run in development mode?

In development mode, the stylesheet tag, tweaks the stylesheet name  
different style.css?1242346 - that last number is based upon the mod  
date of the stylesheet . So when you change the sheet, the browser  
requests a different file and you don't have that problmem.

Sometimes when I am working with stylesheets, I make the mods directly  
in my individual page rather than in the main applicaiton file.

in my layout I typically have a


...
<%= stylesheet_link_tag 'application' %>
<%= yield :header -%>


and on my individual page I'll have:

<% content_for :head do %>


<% end -%>


I tweak the css in the individual page until things are what I want.
Then I cut and paste that stuff into the public/stylesheets/ 
application.css file.
[I usually use the application name and not the word 'applicaiton' but  
everyone does things a little differently.]


Hope that helps,
Keenan

On Jan 8, 2009, at 6:13 AM, DAZ  wrote:

>
> I'm having a bit of trouble with CSS files not always displaying the
> most recent styles after I edit the file. The stylesheets seem to be
> being cached on the server side (clearing my browser cache seems to
> make no difference). Is there any way to get the app to use the most
> up to date CSS files?
>
> cheers,
>
> DAZ
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---