debugging eval, weird pipeline cache problems

This commit is contained in:
2023-02-08 20:37:47 +02:00
parent e6e6265e26
commit 9080e458c4
9 changed files with 34 additions and 23 deletions

View File

@ -3,15 +3,17 @@
= #@image.attributes
.flex.justify-center
%a.underline{ e_click: "bg_change" , r_class: 'back'}
%a.underline{ e_click: "bg_change" , r_class: 'back(50)'}
{{ back }}
:opal
class Clicker < VueR::Application
def bg_change
self.state = !self.state
end
def back
self.state ? "bg-cyan-50" : "bg-cyan-200"
def back(arg)
puts "Arg:#{arg}:#{arg.class}"
str = self.state ? "bg-cyan-50" : "bg-cyan-200"
str + " " + arg.to_s
end
end