Skip to content

Instantly share code, notes, and snippets.

@tadast tadast/gist:3723042
Created Sep 14, 2012

Embed
What would you like to do?
# helpers
module PublicHelper
def router_attributes
{
"data-router-class" => "#{controller_name.to_s.titleize}Controller",
"data-router-action" => action_name.to_s
}
end
end
# layouts/public.haml
%body{router_attributes}
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.