1.

What Do You Mean By Render And Redirect_to?

Answer»

render causes rails to generate a RESPONSE WHOSE CONTENT is provided by rendering one of your templates. Means, it will direct goes to view page.

redirect_to generates a response that, instead of DELIVERING content to the browser, just tells it to request ANOTHER url. Means it first checks actions in controller and then goes to view page.

render causes rails to generate a response whose content is provided by rendering one of your templates. Means, it will direct goes to view page.

redirect_to generates a response that, instead of delivering content to the browser, just tells it to request another url. Means it first checks actions in controller and then goes to view page.



Discussion

No Comment Found