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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:49:14+00:00 2026-06-17T23:49:14+00:00

I am working on inviting new users. In the UI am using J query

  • 0

I am working on inviting new users. In the UI am using J query to add text boxes to allow the user to enter many names and corresponding email-ids. On submit I just want to access all the name and emails( multiple values) in my controller. Now I just need a help. Is there a way to create a hash of values with corresponding name and eamil some what like this. {“name1” => “eamil1″,”name2” => “eamil2” } …

Pls help me out in this.

  • 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-06-17T23:49:16+00:00Added an answer on June 17, 2026 at 11:49 pm

    You can use ‘fields_for’ tag and pass a name followed by [] and a form built as shown below will send an array of hash values.

    <%= fields_for :"names[]", User.new do |builder| %>
        <%=builder.text_field :name%>
        <%=builder.text_field :name%>
        <%=builder.text_field :name%>
        <%=builder.submit%> 
    <% end %>
    

    On submitting the form generated by the above code, the params hash will contain names= [ {“name”=> “…”}, {“name” => “…”}, {“name” => “…”}]

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

Sidebar

Related Questions

Working on a tiny script that references data between users. Each user has a
I'm working on a new social networking site and I want to give users
Working on a small game using an HTML5 canvas, and javascript. And it's working
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
Working on a new project in Laravel 4 (a.k.a Illuminate) I'm trying to create
Working with hibernate and spring social, I am trying to query the database by
working on an auction site using phpprobid software and come to the point of
Working on a web based buying and selling application with PHP MySQL where users
Working on an app using Struts2, Tomcat 7 and an oracle database. Right now
working on using a formula ive been using for a while to find distances

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.