werein / x-editable-rails

Edit fields easily with X-Editable helper
https://wereinhq.com/guides/x-editable-rails
MIT License
155 stars 87 forks source link

Gem is missing dependency on coffeescript #95

Open derekprior opened 6 years ago

derekprior commented 6 years ago

editable/rails is written in coffee script, but this gem does not have a dependency on coffee-rails. The only dependency listed is railties which does not have a coffee script dependency.

jirikolarik commented 6 years ago

Is coffee-rails the only gem which can load coffee script in rails? If so, I'm happy to add it to gem spec otherwise I'd rather leave it on user, what do you think?

tssmits commented 6 years ago

I am trying out the gem, and ran into a similar problem. To get things to work at my end, I had to fork the repo and decaffeinate it (replaced all the coffee with regular old javascript). So far it seems to work very well.

This would solve the problem for users who don't want (or cannot have) the coffee-rails gem in their project.

Here is the fork: https://github.com/tssmits/x-editable-rails/tree/decaffeinate