make own dummy, less confusing what is gem/engine and what is app
This commit is contained in:
19
dummy/app/views/images/index.html.haml
Normal file
19
dummy/app/views/images/index.html.haml
Normal file
@ -0,0 +1,19 @@
|
||||
%h1 Listing kanta
|
||||
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
%tbody
|
||||
- @kanta.each do |kantum|
|
||||
%tr
|
||||
%td= link_to 'Show', kantum
|
||||
%td= link_to 'Edit', edit_kantum_path(kantum)
|
||||
%td= link_to 'Destroy', kantum, method: :delete, data: { confirm: 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Kantum', new_kantum_path
|
23
dummy/app/views/images/show.html.haml
Normal file
23
dummy/app/views/images/show.html.haml
Normal file
@ -0,0 +1,23 @@
|
||||
#app
|
||||
.flex.justify-center
|
||||
= #@image.attributes
|
||||
|
||||
.flex.justify-center
|
||||
%a.underline{ e_click: "bg_change" , r_class: 'back'}
|
||||
{{ back }}
|
||||
:opal
|
||||
puts "here1"
|
||||
class Clicker < VueR::Application
|
||||
def bg_change
|
||||
self.state = !self.state
|
||||
end
|
||||
def back
|
||||
self.state ? "bg-cyan-50" : "bg-cyan-200"
|
||||
end
|
||||
end
|
||||
|
||||
puts "here2"
|
||||
click = Clicker.new(bg: 'bg-cyan-200' , state: true)
|
||||
click.mount("#app")
|
||||
|
||||
puts "here3"
|
Reference in New Issue
Block a user