Skip to content

Instantly share code, notes, and snippets.

@NobbZ
Created November 20, 2012 21:50
Show Gist options
  • Save NobbZ/4121454 to your computer and use it in GitHub Desktop.
Save NobbZ/4121454 to your computer and use it in GitHub Desktop.
Padrino fragment caching in haml view
-cache "userbox_for_#{current_user.name}", :expires_in => 300
%img{:src => current_user.avatar, :class => "avatar"}
=self.current_user.name
/app/views/layouts/application.html.haml:23: syntax error, unexpected keyword_end, expecting $end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment