Reputation: 1874
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?
Upvotes: 3
Views: 1174
Reputation: 1576
You can use this gem to make RoR and NodeJS work together :D
https://github.com/Shopify/schmooze
Upvotes: 0