move to opal dir, still trying
This commit is contained in:
parent
53b549e921
commit
6d48e0cdd4
@ -1 +1 @@
|
||||
//= link_tree ../../javascript .js
|
||||
//= link_tree ../javascript .js
|
||||
|
@ -1,2 +1,2 @@
|
||||
//= link_directory ../stylesheets/vue_r .css
|
||||
//= link_tree ../javascript .js
|
||||
//= link_tree ../../../opal .js
|
||||
|
@ -1,3 +1,4 @@
|
||||
require 'opal'
|
||||
require "opal-rails"
|
||||
require "opal-browser"
|
||||
|
||||
@ -11,3 +12,6 @@ module VueR
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Opal.append_path File.expand_path('../../../opal', __FILE__)
|
||||
Opal.use_gem 'opal-browser'
|
||||
|
@ -1,3 +1,3 @@
|
||||
//= link_tree ../images
|
||||
//= link_directory ../stylesheets .css
|
||||
//= link vue_r_manifest.js
|
||||
//= link_directory ../javascript .js
|
||||
|
@ -1,10 +0,0 @@
|
||||
= form_for @kantum do |f|
|
||||
- if @kantum.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@kantum.errors.count, "error")} prohibited this kantum from being saved:"
|
||||
%ul
|
||||
- @kantum.errors.full_messages.each do |message|
|
||||
%li= message
|
||||
|
||||
.actions
|
||||
= f.submit 'Save'
|
@ -1,7 +0,0 @@
|
||||
%h1 Editing kantum
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @kantum
|
||||
\|
|
||||
= link_to 'Back', kanta_path
|
@ -1,5 +0,0 @@
|
||||
%h1 New kantum
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', kanta_path
|
@ -6,6 +6,9 @@
|
||||
%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,7 +7,8 @@
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<%= javascript_include_tag "vue_r.js" %>
|
||||
<%= javascript_include_tag "vue_r" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user