Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 556 Bytes

ch04-ControllerActionRedirection.textile

File metadata and controls

23 lines (15 loc) · 556 Bytes

Controller.action – Redirection

render(params…);
Renders template with given parameters, text/html

renderXML(params…);
Renders parameters as application/xml

renderJson(params…);
Renders parameters as application/json

renderText(params…);
Renders parameters as text/plain

renderTemplate(“Clients/showClient.html”, id, client);
Bypasses default template

redirect(“http://www.crionics.com”);
Http redirect to the given URL

From an action, calling another Controller.action()
The framework transparently generates a REDIRECT!