-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using link_to with block in arbre template #46
Comments
Maybe |
whats happen if you do text_node link_to('Logout', sign_out_path, method: :delete){ i 'Logout', class: 'fa fa-lock' }.html_safe |
i think you mean text_node link_to(sign_out_path, method: :delete){ i 'Logout', class: 'fa fa-lock' }.html_safe it generates such html <i class="fa fa-lock">Logout</i>
<a rel="nofollow" data-method="delete" href="/sign_out"></a> |
That's not really surprising, because Arbre and the Rails helper methods render HTML to different buffers. I could see two options going forward:
|
Fast forward to 2019. Using |
This was referenced Apr 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
index.html.arb with such code
generate incorrect html
i can use text_node only if i use
link_to
without blocki think same situation will be with any helper method with block that returns html
The text was updated successfully, but these errors were encountered: