Skip to content
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

Block form no longer displaying #16

Open
chrism opened this issue Mar 22, 2017 · 2 comments
Open

Block form no longer displaying #16

chrism opened this issue Mar 22, 2017 · 2 comments

Comments

@chrism
Copy link

chrism commented Mar 22, 2017

If I use the standard link_to helper in a block form ie

      <% link_to '/' do %>
        <h3>Home Link</h3>
      <% end %>

it displays fine, but when using the current_link_to helper the content within the helper is no longer displayed. ie

      <% current_link_to '/' do %>
        <h3>Home Link</h3>
      <% end %>

Is this intentional?

@tysongach
Copy link
Contributor

@chrism Yeah, this is a known issue. I should documented that in the README.

We actually tried allowing blocks using the syntax you posted above, but it wasn’t working. Searching through old Middleman issues and on the forums, it appears that this has been a common issue.

I hope to take another crack at it soon, but for now, this block syntax should work:

<%= current_link_to("/with-block") { "Hello" } %>

@chrism
Copy link
Author

chrism commented Mar 25, 2017 via email

@tysongach tysongach linked a pull request Feb 12, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants