开发者

Render a template in Ramaze

开发者 https://www.devze.com 2022-12-29 22:06 出处:网络
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 nev

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

精彩评论

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