In the following Slim code:
p = f.email_field :email,
data: {
toggle: 'popover',
placement: 'right',
trigger: 'manual',
html: 'true'
},
autofocus: true,
placeholder: 'Email address'
I keep getting an error that Expected tag near toggle: 'popover'
What am I doing wrong? Isn't this the correct way to specify data attributes in Slim?
The indentation is wrong here, because the email field is written in one line with the p tag. This should work: