Rarrange the render_partial function
Automatic support for ControllerBase, bugfix in render_partial, support for 'before_actions'
PHP 5.5 introduces the yield keyword, so we can't use it as a function name. Use render instead