coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Rails integration

Open aemadrid opened this issue 13 years ago • 7 comments

What the easiest way to integrate iced into the rails asset pipeline? I've tried a couple of things but didn't get it to work.

aemadrid avatar Feb 01 '12 20:02 aemadrid

Thanks for the report, I'll look into it!

maxtaco avatar Feb 01 '12 20:02 maxtaco

Sorry, closed it in error.

aemadrid avatar Feb 01 '12 21:02 aemadrid

Waiting on my rubyforge account application to be approved!

maxtaco avatar Feb 01 '12 22:02 maxtaco

I tried my hand at this, is it working? What's a test case I should look for?

The gem is iced-coffee-script

maxtaco avatar Feb 17 '12 00:02 maxtaco

I made a minimal demo here: https://github.com/eric-hu/ics_rails_demo

Right now it looks like the iced-coffee-script compiler isn't being used by Rails. I'd be happy to spend some time off-hours configuring this, for now I've spent enough work time that I feel guilty :)

Rails 3.1+ ships with Coffeescript integration via the coffee-rails gem, so the next step would be to look into how that hooks into rails and set up something similar for ICS

eric-hu avatar Oct 08 '12 20:10 eric-hu

I personally would enjoy some nice icedcoffee in my rails. Is the iced-coffee-script gem enough to get started, or will there be a gem to more tightly integrate with rails?

Spaceghost avatar Oct 16 '12 20:10 Spaceghost

From what I saw with that demo I put together, the await and defer keywords weren't treated as valid, so the Sprockets Coffeescript compiler must still be using the default Coffeescript compiler.

I haven't made time to look into how that's all wired together, yet. I'd like to look into it more and decide if I can dedicate enough time to get it working.

eric-hu avatar Oct 16 '12 21:10 eric-hu