0

I am very new with ruby on rails. The problem is:

When i tried this:

<script src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>

it doesn't work but when I include directly the file in my project it works:

<script src="/jquery.min.js"></script>

I am running my app on http://localhost:3000 but it seems the application cannot access to internet. How can I fix it?

Thanks for your help!

1

1 Answer 1

2

Try adding http

<script src="http://cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.