A brief description of CoffeeScript, jQuery, SCSS and Assets
SCSS files, or SASS is a dynamic version of CSS with variables and mixins (blocks or structures). This is one of features that you say, oh yeah why'd it take the web language folks so long to get this right. Although I haven't had a chance to use this feature yet, I look forward to doing so. Say good bye to cut and paste errors cropping up in your style code.
While converting an older rails 2.3.4 app to 3.0 I crashed and burned while changing one file at a time over within the project. Needless to say that was a flawed strategy, but I did learn a little along the way. I ended up skipping 3.0 and moving to 3.1beta1 with a fresh app, and copied my app and public folders in after getting the migrations right. That move had a couple of outstanding issues, the most important being that I didn't use rails edge for creating the new app (thanks for the tip RubyInside).
First snag the latest rails into an easy to reference location:
cd ~/goodtimes git clone https://github.com/rails/rails.git
My path includes a ~/Desktop/Dropbox/ so my code is available everywhere.
Then refer to that rails exec for building a new app:
~/goodtimes/rails/bin/rails new bacon --edge
Assuming your rails repo is in goodtimes and your new app is called bacon.
Finally this morning I created a git repo and pulled in my old project, then resolved all the merge conflicts. There are likely some sneaky issues left over, as auto merge may have done terrible things with configuration. My last error was a stale cookie, no one eats those.
I'll repeat the process and/or diff one directory at a time if I can't figure it out quickly. So far I've created a few locally functioning rails 3.1beta apps, but ran into problems when deploying the migrated medium complexity app to Heroku, even with theRubyRacer gem.
More to come...
- The official announcement from the Rails team about 3.1 beta.
- Great guidance from RubyInside on how to get started