---
title: "Discussion on \"redirect_back vs redirect_to :back\" | Hashnode"
description: "Discussion on \"redirect_back vs redirect_to :back\". Before Rails 4.x to easily navigate back once the action is complete we used to use redirect_to :back method that looks something like this:\nclass OrdersController < ApplicationController\n  def approve\n    order = Order.find params[:id]\n    order.app..."
url: "https://hashnode.com/posts/redirectback-vs-redirectto-back/649a77228e7cf1639631cfc7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [redirect\_back vs redirect\_to :back](https://blog.przbadu.dev/redirectback-vs-redirectto-back?utm_source=hashnode&utm_medium=feed)

Before Rails 4.x to easily navigate back once the action is complete we used to use redirect\_to :back method that looks something like this: class OrdersController < ApplicationController def approve order = Order.find params\[:id\] order.app...

Jun 27, 2023 · 1 min read · blog.przbadu.dev  
Read the article

-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#ruby](https://hashnode.com/tag/ruby)

## Written by

[Pushpa Raj Badu](https://hashnode.com/@przbadu)

@przbadu

  
[View profile](https://hashnode.com/@przbadu)

Fullstack web developer

I am a full-stack Ruby on Rails developer with experience in PostgreSQL, Docker, Heroku, and performance optimization. I love exploring new technology stacks and have recently developed an interest in mobile app development using Flutter. My skills in test-driven development and fixing security vulnerabilities have helped me deliver high-quality, reliable code. I am also currently learning about machine learning and its applications in real-world problem-solving. I bring a unique combination of technical expertise, creative problem-solving, and a passion for learning to any team. I am committed to delivering elegant and efficient software solutions and excited to contribute to an innovative and dynamic team that shares this vision.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
