As (almost) always in Rails, there’s a method for that: ActionController::Base#render_to_string
In Rails 3, this method was moved to AbstractController::Rendering#render_to_string
.
As (almost) always in Rails, there’s a method for that: ActionController::Base#render_to_string
In Rails 3, this method was moved to AbstractController::Rendering#render_to_string
.