olivernn / poirot

mustaches in your rails
http://olivernn.github.com/poirot
108 stars 21 forks source link

Poirot::View does not support Rails' render #24

Open kaiwren opened 12 years ago

kaiwren commented 12 years ago

Trying to use Rails' render method inside a Poirot::View when trying to render a rails partial call's Mustache's render (which is fine, but should be called out clearly in documentation).

The solution is to use controller.render_to_body if you want to render a partial into a mustache template. Again, just a doc update.

Best, @jasim and @kaiwren