fixed, opal helper was not loaded, why is wip
This commit is contained in:
@ -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:
|
||||
#
|
@ -1,2 +1,3 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
helper OpalHelper
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user