AsyncDataFetch

This project uses MIT-LICENSE.


To use:

fetch_async(model_name: “MODEL_NAME”, model_id: N , model_method: “METHOD_NAME”, tag: “TAG”, display_error: [true/false])

  • model_name is the name of your model you want to fetch data from

  • model_id is the id of the row

  • model_method is the method you want to call

  • tag is the wrapper tag, if absent, will be ‘span’

  • display_error is for debug, you’ll see more information into the html and into the javascript console. Default: false


TODO:

  • make the controller test work. I am having issues with routing if someone want to help me.

  • make the readme looks better. Sorry for now. If you can help, let me know !