Skip to content

Instantly share code, notes, and snippets.

@biot023
Created July 11, 2010 20:46
Show Gist options
  • Save biot023/471818 to your computer and use it in GitHub Desktop.
Save biot023/471818 to your computer and use it in GitHub Desktop.
module CellViewHelpers
def render_cell( cell_name, cell_action )
render( file: Rails.root.join( "app", "cells", cell_name.to_s, "#{ cell_action.to_s }.html.haml" ) )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment