fixed, opal helper was not loaded, why is wip

This commit is contained in:
2023-02-08 15:38:00 +02:00
parent 6d48e0cdd4
commit 8717ac7593
10 changed files with 36 additions and 12 deletions

View File

@ -1,8 +1,17 @@
require "opal"
require "native"
require 'promise'
require 'opal-parser'
require 'browser/setup/mini'
require "vue_r/application"
require "vue_r/mounter"
puts "hello world!"
# 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:
#

View File

@ -1,2 +1,3 @@
class ApplicationController < ActionController::Base
helper OpalHelper
end

View File

@ -6,9 +6,6 @@
%a.underline{ e_click: "bg_change" , r_class: 'back'}
{{ back }}
:opal
puts "HI"
:plain
class Clicker < VueR::Application
def bg_change
self.state = !self.state

View File

@ -7,8 +7,7 @@
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vue_r" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "dummy" %>
</head>
<body>