Reputation: 4647
I have a app which runs on ruby on rails and mysql database. I need to generate couple of reports. Presently I am generating csv file but my Idea is to integrate with the google docs, as soon as a user opens a particular doc automatically it has to sync with the my rails app and fetch the data from the database and display in the google docs.
I need little heads up.I have gone through the docs, but couldn't figure out the way of doing it.
Thanks
Upvotes: 0
Views: 862
Reputation: 19834
You will need to write an onOpen in your gdoc. From there call urlfetch to your app.
Upvotes: 0
Reputation: 2891
Check out the to_google_spreadsheets gem. It is well documented and seems to have all the functionality you are looking for.
Cheers, Sean
Upvotes: 1