get the data to work with active_yaml
This commit is contained in:
1
app/assets/config/manifest.js
Normal file
1
app/assets/config/manifest.js
Normal file
@ -0,0 +1 @@
|
||||
//= link_directory ../javascript .js
|
@ -1 +1,2 @@
|
||||
//= link_directory ../stylesheets/vue_r .css
|
||||
//= link_directory ../../javascript .js
|
||||
|
12
app/assets/javascript/application.js.rb
Normal file
12
app/assets/javascript/application.js.rb
Normal file
@ -0,0 +1,12 @@
|
||||
require "opal"
|
||||
|
||||
# Uncomment the following to print out you're hello-world with Opal:
|
||||
#
|
||||
# puts "hello world!"
|
||||
#
|
||||
# The following will append a hello-world to your <body> element:
|
||||
#
|
||||
# require "native"
|
||||
# $$[:document].addEventListener :DOMContentLoaded do
|
||||
# $$[:document][:body][:innerHTML] += '<h2>Hello World!</h2>'
|
||||
# end
|
Reference in New Issue
Block a user