Skip to content

Instantly share code, notes, and snippets.

@timurvafin
Created September 16, 2010 10:54
Show Gist options
  • Save timurvafin/582246 to your computer and use it in GitHub Desktop.
Save timurvafin/582246 to your computer and use it in GitHub Desktop.
module ApplicationHelper
def my_helper(message)
with_output_buffer { yield(message) }
end
end
<%= my_helper('test') do |value| %>
<%= value %>
<% end %>
# Renders once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment