These are chat archives for opal/opal

6th
Apr 2017
Frederic ZINGG
@fzingg
Apr 06 2017 12:34

Hi all,
I have a question about Rails controller and Opal:
When generating a controller with the command rails g controller controllername , an Opal file controllername.js.rb is generated in app/assets/javascript.

is there an option to avoid the generation of this file ?

Elia Schito
@elia
Apr 06 2017 17:11
@fzingg you can either add --skip-assets to skip all generated assets or just --skip-javascripts to skip just that opal file (tested on rails 4.2)
Frederic ZINGG
@fzingg
Apr 06 2017 17:13
Ok, thanks, that was simple. i will test it on Rails 5.
Elia Schito
@elia
Apr 06 2017 17:14
@fzingg if you get the time would be great to document this on the readme, although it's a rails thing I think it could be useful to others as well 🙂
Frederic ZINGG
@fzingg
Apr 06 2017 17:17
On opal or opal-rails ?
Elia Schito
@elia
Apr 06 2017 17:18
opal-rails 👍🏼