Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7785941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:20:10+00:00 2026-06-01T20:20:10+00:00

I have a controller and I current have it using redirect going to another

  • 0

I have a controller and I current have it using redirect going to another controller, I know I can pass data around using the :query…

Is there any way I can do this without the use of http as I’m finding it impossible to send a hash using http.

I cant find this information any where, what is the most common way of sharing data (slash sending) data from one controller to another?

please help been working on this for hours, btw am new to RoR

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:20:11+00:00Added an answer on June 1, 2026 at 8:20 pm

    If you are redirecting the browser, you will have to use the query option as redirect actually tells the browser to make another request to a different path.

    If you just want to render the other controllers action you could call:

    render :template=>"path to view you want to render"
    

    As for actually calling the other action? You could distill (refactor) the logic into a lib and call the same logic from both controllers, then use the same view for both..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing following problem actually: I'm using Spring with jQuery. I have Controller: @Controller
I want to have my API controller use SSL, so I added another listen
I'm using devise for authentification, so I have a current_user in every controller. My
Using Devise, I know how to protect controller actions from non-signed-in users through: before_filter
Just started using carrierwave with Rails and things have been going smoothly with one
Using Rails v2.1, lets say you have an action for a controller that is
I have seen a nice example whereby the MVC controller class inherits from another
In my controller I have: @invoices = current_user.account.clients.map(&:invoices).flatten and in my index.html.erb I want
I have controller with action new , and I want it to create ActiveRecord::Base
I have controller PlayerController and actions inside: View , Info , List . So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.