Sha256: 94a6459a593315509145ccaf593b7202ae33296616b066581da843148f711977

Contents?: true

Size: 342 Bytes

Versions: 7

Compression:

Stored size: 342 Bytes

Contents

renderer
========

Rails 3 render view partials as string in models or modules

Example usage:

class Banner < ActiveRecord::Base

  def render_free_html

    Renderer.render("adverts/free_html", {:advert => self}, [MyCoolHelper])

  end

  ...

And then in some place:

  banner.render_free_html will return view partial "adverts/free_html"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
renderer-0.0.16 README.md
renderer-0.0.15 README.md
renderer-0.0.14 README.md
renderer-0.0.13 README.md
renderer-0.0.12 README.md
renderer-0.0.11 README.md
renderer-0.0.1 README.md