开发者

Render a template in Ramaze

I've got a template for a partial that I'd like to use and I'm wondering if it's possible to just 开发者_如何学JAVArender the thing without needing to send a mock request to a controller. I'm never going to need to render this to an AJAX call, so it seems silly to set up a controller and action, not to mention the security issues with making a private partial open to the world.


I think you need render_view. It skips both layout and controller action.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜