werein / x-editable-rails

Edit fields easily with X-Editable helper

Home Page:https://wereinhq.com/guides/x-editable-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem is missing dependency on coffeescript

derekprior opened this issue · comments

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.

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?

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