Module: Frank::TemplateHelpers
Instance Method Summary collapse
Instance Method Details
#render_partial(path) ⇒ Object
5 6 7 8 9 |
# File 'lib/frank/template_helpers.rb', line 5 def render_partial(path) pieces = path.split("/") partial = '_' + pieces.pop render_path File.join(pieces.join('/'), partial) end |