Ruby Developer Question:

Tell us what is the difference between redirect and render in Ruby on Rails?

Tweet Share WhatsApp

Answer:

☛ Redirect is a method that is used to issue the error message in case the page is not issued or found to the browser. It tells browser to process and issue a new request.
☛ Render is a method used to make the content. Render only works when the controller is being set up properly with the variables that require to be rendered.

Download Ruby Developer PDF Read All 74 Ruby Developer Questions
Previous QuestionNext Question
Tell me what is ORM (Object-Relationship-Model) in Rails?What is the difference between a gem and a plugin in Ruby?