开发者

Rails javascript development: debug vs releases

I'm starting a Rails app which will use a lot of javascript. What's the best way to approach that? I would like to have my scripts nicely formattet while developing, but would like to have one of these "nicely" compressed, single file includes when deploying my app.

I would assume that there is some开发者_StackOverflow中文版 functionality which handles that automatically. Any hint?


Rails 3.1 will have that baked in, but for now I'd recommend using Jammit: http://documentcloud.github.com/jammit/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜