Tell us what is the difference between redirect and render in ruby on rails?
Answer / 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 |
Is Ruby is a Scripting Language or Compiled Language?
How is direct different from render?
Who developed ruby on rails?
Do you know what is sweeper in rails?
List out the few features of Ruby?
Explain coc in rails?
Mention the role of rails controller.
What is the difference between delete and destroy ?
What is the purpose of require_relative in ruby?
How to use two databases into a single application?
Explain model in rails?
How can you protect filter methods in rails?