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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:18:10+00:00 2026-06-17T01:18:10+00:00

My Problem I want an interactive datagrid (like Excel/Numbers) within my RoR-app. The data

  • 0

My Problem

I want an interactive datagrid (like Excel/Numbers) within my RoR-app. The data being put in, should update a db-table-record.

Did some research and found a lot of Excel(/CSV) processors for importing and exporting .xls(x) and .csv files. Finally I found a data grid view based on JS, JQuery and html. Here. This is exactly what I need. The only thing is, I can’t get it to work within RoR.

What I tried:

Application.html.erb
I checked the file paths with ‘Safari Inspector’

<script src="assets/lib/jquery.min.js"></script>
<script src="assets/dist/jquery.handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="assets/dist/jquery.handsontable.full.css">

View

%div#exampleGrid

%script
  var myData = [
  ["", "Kia", "Nissan", "Toyota", "Honda"],
  ["2008", 10, 11, 12, 13],
  ["2009", 20, 11, 14, 13],
  ["2010", 30, 15, 12, 13]
  ];

  $("#exampleGrid").handsontable({
  data: myData,
  startRows: 5,
  startCols: 5,
  minSpareCols: 1,
  //always keep at least 1 spare row at the right
  minSpareRows: 1,
  //always keep at least 1 spare row at the bottom,
  rowHeaders: true,
  colHeaders: true,
  contextMenu: true
  });​

I tried the JS also in the Application.js but didn’t work either.

I’m using:
Ruby: 1.9.3p194
Rails: 3.2.8

Can someone point me in the right direction / help me out?
I’ve been trying for hours and just cannot get it to work.

A plain index.html with the same handsontable files did work for me.

  • 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-17T01:18:11+00:00Added an answer on June 17, 2026 at 1:18 am

    Can you please specify what exactly doesn’t work and provide an error message? When I copy you code in my test app I get error Uncaught SyntaxError: Unexpected token ILLEGAL This happened because in you script there are some strange symbols. I retype this code manually and everything works fine for me. Here are my files(jquery.handsontable.full.js I place is assets/javascripts and jquery.handsontable.full.css I place in assets/stylesheets):
    application.js:

    //= require jquery
    //= require jquery_ujs
    //= require jquery.handsontable.full
    

    application.css:

    *= require_self
    *= require jquery.handsontable.full
    

    in index.html.erb:

    <div id="exampleGrid"></div>
    <script type="text/javascript">
    var myData = [
       ["", "Kia", "Nissan", "Toyota", "Honda"],
       ["2008", 10, 11, 12, 13],
       ["2009", 20, 11, 14, 13],
       ["2010", 30, 15, 12, 13]
       ];
    
       $("#exampleGrid").handsontable({
       data: myData,
       startRows: 5,
       startCols: 5,
       minSpareCols: 1,
       //always keep at least 1 spare row at the right
       minSpareRows: 1,
       //always keep at least 1 spare row at the bottom,
       rowHeaders: true,
       colHeaders: true,
       contextMenu: true
       });
      </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I want to use the interactive debugger with IntelliJ. Unfortunately, I can't convince
Problem: I want to put Twitter Share Button in my Google Map InfoWindow. I
Problem: I want to add headers in the middle of a gridview databind. I
Problem: I want to list n number of games from each genre (order not
Problem: I want my unicode characters to be stored on disk as (rather tan
Problem: I want disparate sections of my code to be able to access a
Problem I want to create an application that can be extended somehow by programmers.
Core problem: I want to be able to take an instance of a templated
Following problem: I want to render a news stream of short messages based on
The Problem I want to press a key when I have a line highlighted

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.