I am confused about the main difference(s) among link_to, redirect_to and render in Rails. anyone can please explain.
link_to is for use in ERB templates. It outputs a link to a specific path or url.
redirect_to is for use in controllers. It causes the client to request the specified path or url once the controller method exits.
render is also for use in controllers. It causes Rails to render the specified template.
redirect_to and render may only be called once in a given controller method.