
This is the structure, and i want to import javascript and css in fancybox folder.
So i added a code like this,
<link rel="stylesheet" type="text/css" media="all" href="/app/assets/fancybox/jquery.fancybox.css">
<script type="text/javascript" src="/app/assets/fancybox/jquery.fancybox.js?v=2.0.6"></script>
and it throws these errors,
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/app/assets/fancybox/jquery.fancybox.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/app/assets/fancybox/jquery.fancybox.js?v=2.0.6
Do i have to use, rails code?
like somekind of this?
<%= javascript_include_tag "application" %>
I'm not used to rails code, so i used original html codes. I think that is the problem, but i'm not sure how to add the path in here.