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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:04:32+00:00 2026-06-10T12:04:32+00:00

I am building a web application that shows stock data trends and stock quotes.

  • 0

I am building a web application that shows stock data trends and stock quotes. The data has been sent to me in an excel file and I now need to load it into the database. The excel file has daily stock data for each stock, with columns in this format:

date | bid | offer | price | volume

And each stock is in a separate work sheet in the file, as below, each block is a worksheet:

Stock1 | Stock2 | Stock3 | Stock4

What is the best way for me to load this data from the excel spreadsheet to my DailyQuotes table, the migration file for my DailyQuotes table is below:

class CreateDailyQuotes < ActiveRecord::Migration
  def change
    create_table :daily_quotes do |t|
      t.date :date
      t.decimal :bid
      t.decimal :offer
      t.decimal :price
      t.integer :volume
      t.integer :stock_id

  t.timestamps
    end
  end
end

I have already created a Stocks table with the StockName and ID as columns.

  • 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-10T12:04:34+00:00Added an answer on June 10, 2026 at 12:04 pm

    The gem ‘spreadsheet’ maybe the best choice to parse old excel format ‘xls’. Check this guide

    And if you want to deal with xlsx, maybe rubyXL is better.

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

Sidebar

Related Questions

I'm building a web application that shows users interesting visualizations of their Gmail activity
I am building a web application that has a real-time feed (similar to Facebook's
I am building a web application that uses a lot of Javascript. Now I
I am building a web application that will need to allow users to save
I am building a web application that needs to print directly from browser, however,
Suppose you are building a web application that is going to be a packaged
I'm building a web application that needs to send notifications by SMS. What SMS
I am building a web application that is dependent upon several third-party libraries. What
I am building a web application that is currently PHP with MySQL. There is
I'm building a web application that is aimed at developers. I assumed that most

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.