adspace


Tell us what is the difference between redirect and render in ruby on rails?

Answer Posted / Rakee Maurya

In Ruby on Rails, `redirect` changes the HTTP response status to a temporary (3xx) redirect. It then sends the user agent to another URL specified by the argument. On the other hand, `render` generates a response with data from a template directly without changing the HTTP status or sending the user agent to another URL.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of ruby on rails?

948