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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:36:23+00:00 2026-05-15T07:36:23+00:00

I am planning to have something like this for a website that is on

  • 0

I am planning to have something like this for a website that is on Ruby on Rails. User comes and enters a bunch of names in a text field, and a queue gets created from all the names. From there the website keeps asking more details for each one from the queue until the queue finishes.

Is there any queue management gem available in Ruby or I have to just create an array and keep incrementing the index in session variable to emulate a queue behaviour?

  • 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-15T07:36:24+00:00Added an answer on May 15, 2026 at 7:36 am

    The easiest thing is probably to use the push and shift methods of ruby arrays.

    Push sticks things on the end of the array, shift will return and remove the first element.

    As you receive data about each of the names, you could construct a second list of the names – a done array. Or if you’re not concerned about that and just want to save and more on with them, just store the array in the session (assuming it’s not going to be massive) and move on.

    If your array is massive, consider storing the names to be added in temporary rows in a table then removing them when necessary. If this is the route you take, be sure to have a regularly running cleanup routine that removes entries that were never filled out.

    References

    • http://apidock.com/ruby/Array/push

    • http://apidock.com/ruby/Array/shift

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

Sidebar

Related Questions

I have a website that I made and I am planning to redo it.
I have something like this <div id=dis_image></div> <div id=images> <img src=1/1.jpg class=image style=opacity:0.3 />
I have an xml formatted document that looks like this: <?xml version=1.0 encoding=windows-1250?> <
I am using Ruby on Rails and devise for authentication. I have a user(customer)
I have a C library that I'm planning to use in an iPhone application.
I have some data like this: +----+--------+-------+ | id | height | width |
I am in the process of making something similar to this: http://www.artversion.com/pdf/WebsiteDesignQuestionnaires.pdf I have
I have a Rails application that unfortunately after a request to a controller, has
I have a list of data that looks like the following: // timestep,x_position,y_position 0,4,7
I was under the impression that if a user attempted to visit a website

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.