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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:12:06+00:00 2026-05-13T21:12:06+00:00

I have a complex form in Ruby on Rails 2.3.5, here’s the structure for

  • 0

I have a complex form in Ruby on Rails 2.3.5, here’s the structure for it:
Artist
– Name
– Albums
-Songs
– Photos

Each artist can albums and several photos. For each album, there are several songs.
I want to create a 3 step process.
– Create Artist
– Create Album (will have option to create multiple songs)
– Create Photos

I want to set it up in a wizard-like way.
My question is actually pretty general – how would you go about (organizationally speaking) creating forms for the models and controllers for such a project?

Currently, I have a model called Artist, a model called Albums and a model called Photos. Artists has many albums and photos. Under which view would I place the form?

Right now, the way it is looking I go to:
artists/new – create the artist, somehow pass artist id to album,
move to albums as albums/new, keep passing that artist id to photos,
photos/new to create photos and then finish -> back to artists/show.

Ideally, I’d like to have something like artists/new/1 to create the artists
artists/new/2 to create the albums and artists/new/3 to create the photos.

How would I go about doing that? Other than routing the pages to where I want them, is that the correct way of organizing things?

Thank you!

  • 1 1 Answer
  • 1 View
  • 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-13T21:12:07+00:00Added an answer on May 13, 2026 at 9:12 pm

    You probably need nested routes. It automatically should handle relations.

    So you will have links like artists/1/albums/new, artists/1/albums/5/songs/new etc

    So your scenario could sound like this:

    1. artsists/new
    2. Save the artist on post.
    3. Redirect (or render ajax form) to new article (you can use rails generated helper) redirect_to new_artist_article_url @artist_just_created_and_saved
    4. Save artist and to the same for songs etc
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a complex input form within a PHP based web application. To structure
We have the following code working for a complex rails form with checkboxes. I'm
I have a complex form that has a static section and one that can
I have a complex structure which contains a list ofthe following form complex tree
Here's the situation: I have a website with a complex address form with multiple
I have a complex form for scheduling events. Here are the abbreviated associations: class
I'm have a fair complex Form that I am trying to create in Play
I have a fairly complex html form enhanced via jquery. It has multiple tabs,
I have a web app that has a big and complex form (fields, checks,
I'm using Ruby on Rails to develop a web application. I have a wiki

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.