Flowdock
render_to_string(options = nil, &block) protected

Renders according to the same rules as render, but returns the result in a string instead of sending it as the response body to the browser.

Show source
Register or log in to add new notes.
May 11, 2010 - (<= v2.3.4)
0 thanks

No Layout, other options

While it renders to the same rules as render, you need to specify params.

You’d think this would work:

  render_to_string "users/profile", :layout => false

You need to do this instead

  render_to_string(:layout => "users/profile", :layout => false)