Skip to content

Instantly share code, notes, and snippets.

@eqdw
Forked from burke/controllers.rb
Created June 9, 2011 16:46
Show Gist options
  • Save eqdw/1017156 to your computer and use it in GitHub Desktop.
Save eqdw/1017156 to your computer and use it in GitHub Desktop.
Things I wish existed...
class GenericController < ApplicationController
end
class SpecificController < GenericController
end
-# apps/views/generic/_toolbar.html.haml
%ul
%li Thing 1
%li Thing 2
=render "specific/toolbar"
-# apps/views/specific/_toolbar.html.haml
%li Thing 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment