No commit activity in last 3 years
No release in over 3 years
Invoke JS workers from your Rails controllers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.2
 Project Readme

Introduction

Build Status

This rails engine lets you invoke client-side workers from your controllers without having to do ugly things like dynamically build JS in your views.

Setup

In your application.js (or wherever)

new JobQueue("my_queue", {
  "console:log": function(options){
    console.log(options);
  }
})

In your controller

def index
  enqueue_client_job("my_queue", "console:log", "Hello World")
end

Warning

This code is under heavy development. Use at your own risk.

Credits

This gem is brought to you by the good people at Honeybadger.io, a Rails Error Notifier.