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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:21:25+00:00 2026-06-13T10:21:25+00:00

PriceOfWeed.com is a website where users can submit how much they pay for marijuana.

  • 0

PriceOfWeed.com is a website where users can submit how much they pay for marijuana. If you click a state, you can see how many users have submitted their transactions, and the average prices paid.

Here’s how I assume it works:

  1. User submits how much they paid using the form at the top of the site.
  2. That price is inserted into the site owners’ Fusion Table.
  3. The Fusion Table map now reflects the updated info.

What I am trying to understand is how this process could work in Ruby — specifically, step 2. I’d like to use Fusion Tables and Ruby to make a cool map with dynamically updated data, but I have yet to find simple instructions/examples on how to do it.

Does anyone know how I can use Ruby to automatically add rows to my own Fusion Table?

  • 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-13T10:21:25+00:00Added an answer on June 13, 2026 at 10:21 am

    I have used the fusion_tables gem to use Google Fusion Tables for generating US State-wise & County-wise mapped information.

    It is pretty simple to work with. The README.md file explains the steps involved in working with the fusion tables.

    Here’s how the overall structure works:
    1. Create the base fusion table to store the required data.
    2. Merge it with the publicly available fusion table containing the geographic info (State-wise/county-wise, etc.), and create a map view.
    3. With the fusion_tables gem based ruby code, insert records into the base fusion table. The map gets updated with the new info.

    The code to insert records would be as follows:

    require 'fusion_tables'
    
    # Connect to service    
    @ft = GData::Client::FusionTables.new      
    @ft.clientlogin(username, password) # Make sure this user has read/write access to the Fusion Table.
    
    tables = @ft.show_tables
    required_table = tables.select{ |t| t.name == "Base_table" } # assuming the base table name is "Base_table"
    
    data = [ { "column_1" => <First Column 1 data>, "column_2" = <First column 2 data>...},
             { "column_1" => <Second Column 1 data>, "column_2" = <Second column 2 data>...},
             ...
           ]
    
     required_table.insert data
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send two different lines of XML to a socket as follows:

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.