Plugins - Safe render

StarAdd to favorites

Provides a helper safe_render that wraps render in a rescue and returns nil on failure. This allows for conditional rendering as well as passing multiple :partials via an array to find the first template that exists. See README for more info and usage.

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?