In my tag I have this code:
<!-- STYLESHEETS, user & other -->
<%= stylesheet_link_tag :bootstrap, :TDsite %>
<!-- javascript -->
<%= javascript_include_tag :bootstrap, :docs, :jquery %>
Accessing the compiled webpage from the development server, all is well, but when I run a build, the link targets are said to be “undefined”. Looking at the HTML I see that an extra “/” is added to the links:
<!-- STYLESHEETS, user & other -->
<link href="/stylesheets/bootstrap.css" rel="stylesheet" /><link href="/stylesheets/TDsite.css" rel="stylesheet" />
<!-- javascript -->
<script src="/javascripts/bootstrap.js"></script><script src="/javascripts/docs.js"></script><script src="/javascripts/jquery.js"></script>
This is also visible in the HTML shown by the development server, but for some reason its not a problem there, as the page renders fine. In any case the links, as shown are NOT correct and shouldn’t work. I cannot figure out why this is happening, and so cannot fix the problem.
Can anyone help me with this? I’m very new to Middleman, and there is much I have yet to learn. I searched the documentation and could not find so much as a clue as to why this is happening.
[
Obviously, putting the links into the layout in their final form should work fine, and does, with both development server output and the build -
<link href="stylesheets/bootstrap.css" rel="stylesheet">
<link href="stylesheets/TDsite.css" rel="stylesheet">
]