These are chat archives for opal/opal

25th
Mar 2015
Can Edremitoglu
@cantonic
Mar 25 2015 14:04
@elia sorry for my very late reply regarding the application.js.rb: changing //= require to #= require works, but I get some warnings like WARNING: LoadError: cannot load such file -- grade_level_classes_new (grade_level_classes_new.js is a javascript file which is not required in application.js.rb but loaded separately)
Elia Schito
@elia
Mar 25 2015 14:06

but loaded separately

how?

Can Edremitoglu
@cantonic
Mar 25 2015 15:11
@elia we are having a javascript_include_tag for the application.js.rb and another one for controller specific js files.
since we don’t want to load controller specific assets in all pages, we don’t require it in application.js. Instead we have an additional javasceript_include_tag for it
Elia Schito
@elia
Mar 25 2015 15:13
@cantonic and the error comes from which include tag?
Can Edremitoglu
@cantonic
Mar 25 2015 15:13
from the controller specific one in this case
but the files are working fine
I just get the warning message i posted above
it says it cannot load the file but it can
@elia Do you want me to set up a rails application and push it on github in order to help you to reproduce it?
Elia Schito
@elia
Mar 25 2015 15:15
would be much easier that way
@cantonic thanks
Can Edremitoglu
@cantonic
Mar 25 2015 15:21
alright
i have created different branches for testing different combinations. see the README
especially variant5 is interesting for you i guess
Elia Schito
@elia
Mar 25 2015 17:10
@cantonic thanks will have a look as soon as I can
Elia Schito
@elia
Mar 25 2015 23:19
@cantonic (checked master so far) the problem is the following: if you use application as a manifest (i.e. plain js with a list of requires) you are responsible for loading opal code
with Opal.load('opal'); Opal.load('home_view')
Elia Schito
@elia
Mar 25 2015 23:24
@cantonic variant1 should be fixed on master (AssetFilteredError)