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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:59:27+00:00 2026-05-22T23:59:27+00:00

I cant really wrap my head around how to do this since I’m new

  • 0

I cant really wrap my head around how to do this since I’m new at RoR.I have a Price model which is the only table i want to use for forms. I want to have 2 other MVCs that are UserData and Search.

The scenario is Users can input Prices and these Prices have 3 places to go. It can be their Data area, Search area or both areas. But the twist is Data area will have my parts on the form like the category of price and same goes with the Search area, that form you can put tags on it.

So how do i set it up so i am using my Prices form for the other 2 MVCs?

EDIT:

User has_many Prices

UserData has_many Prices and Category belongs_to UserData

Search has_many Prices and Tag belongs_to Search

Price Form = price name, date, and cost only.

UserData + Price Form + Category model = price name,date,cost and category.

Search + Price form + Tag Model = price name,date,cost and tags of price ( vegetables, candy?)

  • 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-22T23:59:28+00:00Added an answer on May 22, 2026 at 11:59 pm

    Hi If you’re using rails 3 check http://railscasts.com/episodes/269-template-inheritance if older version you should create folder shared under your views directory and place there partial _price_form and render it on page http://guides.rubyonrails.org/layouts_and_rendering.html – guide on rendering

    If your have any connections between models please post its description

    now how to have one form for several models
    for better understanding I would advise you to check these 2 railscasts

    http://railscasts.com/episodes/196-nested-model-form-part-1
    http://railscasts.com/episodes/197-nested-model-form-part-2

    also http://stackoverflow.com/questions/5717421/accepts-nested-attributes-for-practical-form-use-for-in-rails-3 may be helpful

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

Sidebar

Related Questions

I can't wrap my head around this. I have several Divs within a HTML
I'm tired and I can't wrap my head around this. I have two tables:
It's seems like I never really manage to wrap my head around subprocess. This
I really can't wrap my head around this one. For some reason, (and I
Cant get this script to work with my menu really have tried everything any
hey guys having this really simple problem but cant seem to figure out have
I'm trying to wrap my head around this, but I seem to go in
I'm trying to wrap my head around multiple inheritance in python. Suppose I have
Am following a nice tutorial here and it's really helped wrap my head around
I'm still very new to prolog, and am trying to wrap my head around

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.