mercredi 18 janvier 2017

HTML execute Ruby Script

I have a basic rails website, generated using rails new app_name. I want to execute a ruby scraper script that returns a list of my github repos from a client side action. Such as a hover or a click on an element. How do I go about doing this?

I've read about rails rake tasks and have the scraper script and webpage up and functioning. However as far as putting it all together goes i'm lost, and at most unsure if what i'm doing is the correct way to be going about things.

Would someone be able to help me understand how to execute a ruby script that 'puts "Hello World!"' on click on the server side which is then displayed on the client side? Any help is appreciated, thank you!

Aucun commentaire:

Enregistrer un commentaire