Usage in Rails

Topics: General
Oct 3, 2012 at 10:27 AM
Edited Oct 3, 2012 at 10:27 AM

I've put together a little Gem that lets you use TypeScript within the Asset Pipeline of a rails application.


Just add 


gem 'typescript-rails'

to your Gemfile and start adding .ts files to your app/assets/javascripts folder. they are automatically compiled to JS for you and when you deploy your app also minified and versioned. 


Have fun ;)

Oct 5, 2012 at 3:52 PM

Thanks for the heads up!

Mar 10, 2014 at 5:47 PM
It does not work for me. I have rails 4 installed and I see uncompiled ts being concatenated in my overall js file. Any ideas ?