Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

link_to with data-toggle attribute?

Hello, how can I use it?

{{ link_to("test", ""~var, ["data-toggle":"modal"]) }}

Doesn't work.



3.7k
Accepted
answer

Hi,

The correct is:

{{ link_to('test', ''~var, 'data-toggle':'modal') }}