alchaplinsky / polymer-rails

Polymer and web components for Ruby on Rails
MIT License
286 stars 80 forks source link

Prevent failures when files can't be found #20

Closed jordan-thoms closed 9 years ago

alchaplinsky commented 10 years ago

Why would you suggest to do it in a way that it would almost silently (puts e.message works only once) fail to load resources needed for web component? I'd prefer to see an exception if something is missing and doesn't work rather than see successfully rendered page and guess if all the functionality is in place.

alchaplinsky commented 9 years ago

closing this due absence of discussion and arguments :)

jordan-thoms commented 9 years ago

Oops I totally forgot about this! Sorry for not getting back to you. I was running into issues where polymer -material components I wasn't even using were failing because they couldn't find some of the files they required - this was using your polymer-paper-rails gem.

Completely agree about not silently dropping these errors, but failing the entire build because a element I'm not using can't be inlined isn't great either. Anyway I'll have another look and submit another pr if I have a better solution.

Cheers

alchaplinsky commented 9 years ago

In this case, I think, polymer-paper-rails requires fixing.