Enhance your JavaScript-fu with LowPro

Posted by Enrique Delgado Thu, 31 May 2007 14:34:00 GMT

During RailsConf 2007 I had the pleasure to have a beer with Dan Webb at the Rails Machine hangout. It was cool to talk all about JavaScript (one of my interests) as it relates to Rails.

It was interesting to find out that Rails is not quite adopting the “unobtrusive way” completely. Just look at how the link_to_remote JavaScript code is generated; it mixes content with JS code.

I’m hoping that as Rails gets betetr and better, it will also support better graceful degradation for JavaScript. For now, Dan’s awesome library a.k.a Low Pro should help us all become true JavaScript-fu disciples.

Talk about navigating through the DOM with ninja-like swiftness! :)

Posted in  | Tags ,  | 1 comment

SliceHost + Deprec Plug-in

Posted by Enrique Delgado Tue, 01 May 2007 15:00:00 GMT

I’ve recently purchased a slice at SliceHost and started to use the Deprec plug-in for Rails for my apps.

Thanks to the awesome Top Funky free peepcode screencast I was able to start deploying applications (including the entire Rails stack) quickly and in a predictable manner.

Check out the screencast for details, but this is my basic recipe to setup a new application. These steps will create a sample rails application, setup apache, mongrel, and deploy (with migrations!):

  1. rails mykillerapp
  2. deprec --apply-to .
  3. Edit your config/deploy.rb file.
  4. cap deprec_setup
  5. cap setup_scm
  6. cap deploy_with migrations
  7. cap restart_apache

And you are done! Subsequent releases are even easier:

  1. cap deploy_with_migrations

Pretty good eh?

Posted in  | Tags , , , ,  | no comments