If there a way to include the content of a javascript file into a Rails view?
I know about Ruby’s File.read, but I’m searching for some helper already done.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So you can include any javascript code located on your machine. But to be honest there’s more appropriate way to do that kind of things.