Something to remember about the Internet is that it was initially designed
to share files across telephone cable.

Web sites are representations of directories on servers, so if you go to
/foo all relative paths in your links will go to /foo/whatever

This can have unintended consequences, as Nathan discovered yesterday and
you will discover today if you smoke test the application and visit a page
that is not the home page

On Wednesday, October 2, 2013, artfoundry wrote:

> In app/views/layout.erb:
>
> > @@ -2,7 +2,11 @@
> >  <html>
> >  <head>
> >    <title>Liar's Dice</title>
> > -<link rel="stylesheet" type="text/css" href="style.css"
> > +<link rel="stylesheet" type="text/css" href="style.css">
> > +<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
> > +<script type="text/javascript" src="javascripts/underscore-min.js"></script>
> > +<script type="text/javascript" src="javascripts/load.js"></script>
>
> Can you be more specific? My understanding for including files using
> relative paths is not to include a / or the current directory at the front
> (and this is reiterated on the intertubes). So if it's a file in the
> current dir., just list the file. But I know Nathan had an issue with the
> style sheet not having a / in front of the path. Can you elaborate on what
> the issue was and what conventions are for this? :-Dave David Markowitz
> dave@artfoundry.com <javascript:_e({}, 'cvml', 'dave@artfoundry.com');>"May Joy and Innocence Prevail" - the big pink elephant (Toys, the movie)
> … <#1417aee6a93b33e5_>
> On Oct 2, 2013, at 11:38 AM, Zee <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>
> wrote: In app/views/layout.erb: > @@ -2,7 +2,11 @@ > <html> > <head> >
> <title>Liar's Dice</title> > -<link rel="stylesheet" type="text/css"
> href="style.css" > +<link rel="stylesheet" type="text/css"
> href="style.css"> > +<script type="text/javascript" src="
> https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
> > +<script type="text/javascript"
> src="javascripts/underscore-min.js"></script> > +<script
> type="text/javascript" src="javascripts/load.js"></script> Remember what
> happens with relative pathing and pages that aren't the home page? — Reply
> to this email directly or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tiger-swallowtails-2013/liars-dice/pull/8/files#r6727505>
> .
>