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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:19:41+00:00 2026-05-25T13:19:41+00:00

I have an application on which a user can create multiple profiles of three

  • 0

I have an application on which a user can create multiple profiles of three kinds – social, professional and special interest. I have three models that store information about these profile types for a user. I need to create a drop down select menu of profile names for navigating between the views of these different profiles. I know it can be done using collection_select to populate from one database table, but how can I populate from all three tables?

Also can it be populated on a drop down navigation bar? Profiles -> View my profiles -> dynamically populate all profiles?

<ul id="nav" class="dropdown dropdown-horizontal">
    <li><%= link_to("Profiles", new_profile_path()) %>
    <ul>
          <li><%= link_to("View my profiles") %>
              <ul>
                  <li> *some way to populate my list here* </li>
              </ul> 
          </li>
        </ul>
           .
           .
           .

Any help is appreciated. 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-25T13:19:42+00:00Added an answer on May 25, 2026 at 1:19 pm

    I would suggest that unless absolutely necessary, instead of having three separate models for the three different profile types, you can have one User model and a single Profile model and then create an association between them. It will lead to cleaner design.

    If it is absolutely necessary that you have three different Profile models then you can populate the drop down like this.

    <select id="something">
      <%for profile in @social_profiles%>
        <option value="<%=profile.id%>"><%=profile.name%></option>
      <%end>
      <%for profile in @professional_profiles%>
        <option value="<%=profile.id%>><%=profile.name%></option>
      <%end%>
      .
      .
      .
    </select>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Application (an appointment manager) which lets the user create usercontrols in
I have a web application in which a user has to upload images to
I have an application which had optional extras depending on if the user has
I have a Java application which I want to shutdown 'nicely' when the user
I have an application in which I want to authenticate a user from a
I have an application in which I have to show the alerts for user
I have been working on an application which allows the user to make a
I have an Excel application in which I want to present the user with
I have a standalone application in which I have to prompt the user with
I have a simple application in which I need to let the user select

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.