Slim: what’s wrong with these data attributes?

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?

Source: ruby

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.