This is a around-filter for your controler actions, if current request is an xhr, then it‘ll make your action render without any layout, and then use RJS to update your page.
[Validate]