Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for sinatra ajax example

Tags:

ajax

sinatra

Sorry if this has been covered. Looking for a example of AJAX with Sinatra, specifically to get a partial and apply it to a tag in the DOM, from a javascript button handler. thx

like image 614
dt1000 Avatar asked Feb 02 '12 22:02

dt1000


1 Answers

Check out these examples:

  • https://github.com/fcantelmi/sinatra_ajax/ (tiny example)
  • https://github.com/crguezl/sinatra-jquery-ajax/
  • http://ididitmyway.heroku.com/past/2011/2/27/ajax_in_sinatra/
like image 91
sashaegorov Avatar answered Oct 23 '22 21:10

sashaegorov