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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:17:15+00:00 2026-05-22T16:17:15+00:00

How do i make it so users who are filling out their form when

  • 0

How do i make it so users who are filling out their form when adding new prices can select categories they already made or create a new one.

I have an Add_Prices controller,model and views. The Model holds the price name, date and price as of now.

  1. I don’t know if the category should be a string or integer.

  2. I also don’t know how to make the form so the user can select a scroll down list on the form of past categories they saved or in the scroll down list they select “New” and a text box pops up next to it and they can save it when they fill out everything.

  3. Everything(price,date,etc) including the category will go to the Data Controller/View so they can see everything there.

Please help a newbie!

Thank you!

  • 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-22T16:17:16+00:00Added an answer on May 22, 2026 at 4:17 pm

    Well, you would ideally name your controller (Link just so you can see naming conventions) the name of your resource so consider using just Price instead of Add_Prices. And as for adding categories, consider adding another resource for categories and use rails associations to associate the categories to other objects. Using this type of relationship is demonstrated over in this question here.
    The category should have a name that is text and it should also have an ID generated by default.

    Good luck, If you still need help feel free to let me know.

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

Sidebar

Related Questions

can anyone please tell me how can I make a list of users who
Is it safe to let users make their own Django templates with a set
Hy, In my application there will be: profiles: they are just users that make
Objective : Make a progress bar where users can check how much of a
Let's say my web app is acting on behalf of users who give their
In my application I have 2 pages. 1 for signed out users who come
So in my application, users can assign basic privs to other users who don't
In my project I need to write small WYSIWYG editor (just let users make
I am looking to code me a banner management system that has users make
Why do i have to use some persistent-login module to make my users login

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.