Skip to content

Feature request: allow to pass a block to `present` helper #2

Closed
RKushnir opened this Issue Dec 14, 2012 · 1 comment

2 participants

@RKushnir

Please consider the following usage scenario:

<% present(current_user) do |user| %>
  <%= user.link_to_profile %>
<% end %>

I've taken this trick from The Rails View book and been using it in my homemade presenters. What do you think?

@rf-
Owner
rf- commented Dec 14, 2012

Sure, I don't see why not.

@rf- rf- closed this in 9077769 Dec 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.