app.rb file ---
require 'native'
require 'opal'
$window = Native('window')
window.alert("hello world")
---
this ruby scripts gives the following error in jsconsole
Uncaught NoMethodError: undefined method `Native' for main
also I have included these in my html head tag
<script src="app.js"></script>