@bayan yups, it would most certainly break the other sites that use
the CDN. I forgot to mention that this would only be a temporary fix
=) meant to be used only if you're stuck offline in a cafe like the OP
was.

On Feb 23, 1:49 pm, Bayan Khalili <[email protected]> wrote:
> Wouldn't that affect viewing other sites that use the google CDN?
>
> Bayan
>
> On 23 February 2011 09:46, SengMing Tan <[email protected]> wrote:
>
>
>
>
>
>
>
> > +1 to Julio's answer since its elegant and uses the least amount of
> > code.
>
> > Alternatively, if you ever need to do this without changing any code,
> > just add the following line to  /etc/hosts and all requests to the
> > Google CDN will get routed to localhost instead.
>
> > 127.0.0.1 ajax.googleapis.com
>
> > On Feb 21, 11:54 am, Tim McEwan <[email protected]> wrote:
> > > Step 1. Grab a copy of your production data so you can do a proper demo
> > of your app
> > > Step 2. Forget that you don't have net in the cafe; all the javascript
> > fails
> > > Step 3. Go back to your office and whack this in your app:
> >https://gist.github.com/836481
>
> > > I know it's probably obvious to most of you, but just in case... Also
> > seeking ideas on how to make it more elegant as it's a bit of a monster.
>
> > > Cheers,
> > > --
> > > Tim McEwan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby or Rails Oceania" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to