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 6167223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:28:24+00:00 2026-05-23T22:28:24+00:00

I have a model called Project, which is a collection of information stored by

  • 0

I have a model called Project, which is a collection of information stored by a Company. This company can create projects two ways.

The first is the standard RESTful way – the company goes to the Project index, then clicks ‘New Project’, and upon creation is returned to the index with a flash message.

The second is a ‘quick create’ that can be accessed when a company is looking at a client’s profile. From here, the company can enter some basic information and send this off to create a project with that client (the client is specified automatically here).

The second of these two scenarios has a project being accessed from clients/show. Sending this data to projects/create would ordinarily route the company to projects/index, but I don’t want that. In this case, the create action is meaningfully different in that certain fields are treated differently, and the redirect is also different. What would you suggest I do?

  1. Build an alternative ‘create_from_client’ action in projects.
  2. Build a ‘create_project’ action in clients.
  3. Send a parameter to projects/create and set client_id and redirect to client/show if that parameter exists.
  4. Something else I’m not aware of.

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-23T22:28:24+00:00Added an answer on May 23, 2026 at 10:28 pm

    I would just add another action to the controller, ‘quick_create’ or whatever. You can dry out the form with partials and parameters to the partial to tell how to render things…This just seems like the easiest way.

    I’ve got this semi-rational (or is that semi-irrational) hang up against leveraging the referrer…

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

Sidebar

Related Questions

Let's say I have a model class called Project, but instead of this: class
I have a model called Details, and two controller methods new and create. New
I have a project called MyApp.DataAccess which contains several database contexts. This started as
so the story is like this. I have a project, called PA.DLL, which have
So I have one model called Project, for which there is a nested model
I have a model called Contact which has_one guest like so. class Contact <
I have a model called Answer which has a ForeignKey relationship to another model
I have a model called company that has_many users then users belongs_to company. class
I have a class called MODEL in which public static int theMaxFrames resides. The
I'll just jump right into it. I have a model called Request which I

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.