3

I'm having a great time live-reloading JS with fb-flo in my Rails & batman.js project. I want to move my code into a Ruby gem, but I don't know what to do.

To run the flo server, I'll need to require("fb-flo"). If this was a node module, I'd just make sure to put my dependencies in package.json. But how can I require fb-flo (and its dependencies) in a Ruby gem?

Or, should I just install the dependencies and include them in the gem's code?

rmosolgo
  • 1,854
  • 1
  • 18
  • 23

1 Answers1

0

You can use this gem to make RoR and NodeJS work together :D

https://github.com/Shopify/schmooze

rmartrenado
  • 1,516
  • 1
  • 18
  • 42