Skip to content

Instantly share code, notes, and snippets.

@gregbell
Created May 24, 2011 19:24
Show Gist options
  • Save gregbell/989466 to your computer and use it in GitHub Desktop.
Save gregbell/989466 to your computer and use it in GitHub Desktop.
Arbre components in ERB
<% self.class.send :include, Arbre::HTML %>
<%= panel("Hello"){ h2 @test_assign } %>
<%= panel("Hello World"){ } %>
class TestsController < ApplicationController
def index
@test_assign = "Test Assign"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment