Can I access the input value and check his value? I want to disable the ability to change the key if it's equal to 'foo'.
.email-template-param-nested-fields
- if :key == 'foo'
= f.input :key, placeholder: 'foo', readonly: true
- else
= f.input :key, placeholder: 'key'
= f.input :value, placeholder: 'example'
You can assign variable as
And then