These are chat archives for opal/opal

7th
Nov 2016
Jan Hovancik
@hovancik
Nov 07 2016 07:23
hey guys, I have question about opal: when I write code, I can only use ruby gems or can I use nodejs packages as well?
Barrie Hadfield
@barriehadfield
Nov 07 2016 07:47
@hovancik you can use everything. See http://ruby-hyperloop.io for an example using Opal, React and any number of NPM packages.
Jan Hovancik
@hovancik
Nov 07 2016 07:50
@barriehadfield but in rb code, right?
Barrie Hadfield
@barriehadfield
Nov 07 2016 07:51
Yes. See the 2nd tutorial on the site for an example. JS libraries are imported into ruby. Everything works perfectly.
Barrie Hadfield
@barriehadfield
Nov 07 2016 08:00
Yes. I think there is also an example on the Opal site on how to import a JS lib and use it in the ruby code
Jan Hovancik
@hovancik
Nov 07 2016 08:01
Thanks, I'll try to find it
Mitch VanDuyn
@catmando
Nov 07 2016 23:14
once again these basics are killing me...
where the heck did "1/1/2001".to_time go?
I have required active_support... anything else I am missing?