What Do You Mean By Render And Redirect_to?

Technology CommunityCategory: Ruby on RailsWhat Do You Mean By Render And Redirect_to?
VietMX Staff asked 3 years ago
  • 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.