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

  • Home
  • SEARCH
  • 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 7541677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:57:22+00:00 2026-05-30T07:57:22+00:00

There is a purchasing controller in our rails 3.1.0 app. A purchasing needs 4

  • 0

There is a purchasing controller in our rails 3.1.0 app. A purchasing needs 4 approvals and we want to separate the approval from regular editing. What’s the best way to handle this approval? One way is to add 4 custom routes in purchasing controller for approval. Is there a way to build another controller such as purchasing_approve for handling the approval? If it does, how to construct the view, controller and declaration in routes.rb?

Thanks.

  • 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-05-30T07:57:24+00:00Added an answer on May 30, 2026 at 7:57 am

    If the approval process just changes an attribute of the purchase model, I’d advise you to use a custom action in the purchase controller. Like this.

    If the approval has it’s own table and it’s a more complex process, it makes sense to create another controller. The implementation though depends on how you want to show the process to the user.

    If you describe the user experience you have in mind I could give you a more complete answer.

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

Sidebar

Related Questions

I'm considering purchasing a ReSharper license, but are there any possible alternatives to ReSharper
Ok, so here's my problem. We are looking at purchasing a data set from
The iOS in-App purchase when purchasing multiple items, such as credits. Confirm Your In-App
We are purchasing a database of zip codes and their corresponding Lat/Long. I want
In my report there is a Purchasing Group number with values like 100,101,102....201,202,203..301,302,303... etc.
I want to make an form for purchasing tickets. The problem is that for
I regularly get support emails from users who can't download my app from the
I have designed an application which contains in App purchasing. I have also read
We are considering purchasing Sitefinity (or DotNetNuke) on pretty short notice and there are
I am trying to submit my first iPhone app that has in-app purchasing features.

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.