Before AMP I was using javascript_include_tag 'application'
for including all js files but now after AMP implementation it shows error:
The tag 'script' is disallowed except in specific forms
AMP supports async
attribute and application/json+ld
type in script
tag
As of 2017 you can use the amphtml gem with its javascript component to build strong rails applications with custom javascript.