diff --git a/app/assets/stylesheets/components/button.scss b/app/assets/stylesheets/components/button.scss index b044401ea..e5d4520fd 100644 --- a/app/assets/stylesheets/components/button.scss +++ b/app/assets/stylesheets/components/button.scss @@ -1,10 +1,11 @@ +/* @todo DELETE ME */ @layer components { [type="reset"], [type="button"], [type="submit"], button, .button { - @apply font-bold py-2 px-4 my-1 rounded bg-primary-500 text-white text-center transition ease-in-out duration-150; + @apply font-bold py-2 px-4 rounded bg-primary-500 text-white text-center transition ease-in-out duration-150; &:hover { @apply bg-primary-700; diff --git a/app/models/room.rb b/app/models/room.rb index 2be84d42c..c46e94e8f 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -36,6 +36,7 @@ class Room < ApplicationRecord has_many :furnitures, dependent: :destroy, inverse_of: :room accepts_nested_attributes_for :furnitures + alias_method :gizmos, :furnitures def full_slug "#{space.slug}--#{slug}" diff --git a/app/views/furnitures/_form.html.erb b/app/views/furnitures/_form.html.erb index c0b7ef08c..6c9b239b8 100644 --- a/app/views/furnitures/_form.html.erb +++ b/app/views/furnitures/_form.html.erb @@ -1,14 +1,17 @@
<%- if policy(furniture).edit? %> - <%= form_with(model: [furniture.room.space, furniture.room, furniture], local: true) do |form| %> + <%= form_with(model: [furniture.room.space, furniture.room, furniture]) do |form| %>
<%= render partial: furniture.furniture.form_template, locals: { form: form } %>