What is the difference between render and redirect?



What is the difference between render and redirect?..

Answer / Mohit Verma

Render generates a response (like HTML, JSON, or XML) to be sent back to the client. Redirect changes the current request's URL by sending a special HTTP status code to the browser, causing it to fetch a different page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

Explain valid and invalid in rails?

1 Answers  


what are the positive aspects of Rails?

1 Answers  


Can you explain me how rails implements ajax?

1 Answers  


explain request/response cycle?

1 Answers  


What is ruby on rails & why it is used for?

1 Answers  


What is agile development? What are the strengths?

1 Answers  


How are Model views and controllers related?

3 Answers  


what are helpers and how to use helpers in ror?

1 Answers  


how can you declare a block in Ruby?

1 Answers  


Explain coc in rails?

1 Answers  


What is the difference between Render vs. Redirect_to in ruby on rails ?

1 Answers  


Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me

1 Answers   Baidu,


Categories