Skip to content

Instantly share code, notes, and snippets.

@xxx
Created July 26, 2009 06:39
Show Gist options
  • Save xxx/155450 to your computer and use it in GitHub Desktop.
Save xxx/155450 to your computer and use it in GitHub Desktop.
template:
.foo
= partial 'my_header'
.bar
= form_for(@user, :action => '/users') do
fields and stuff here...
_my_header.html.haml:
.baz
= my_helper
helper:
def my_helper
partial "some/partial_#{rand(3)}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment