Deploying Rails with Phusion Passenger and Nginx in 5 minutes by Chris Howart

When I first started with RoR, I used to wonder how developers deployed their application with such ease. Here’s a guide which should come in handy if you want to deploy a Rails app with Nginx, without making the whole process look tedious. I could get this done in 5 minutes, how about you?

Read More

Advertisements

I really liked python/django. Until now I never got an issue with python in windows as much as I got issues in ruby. Although there are fewer works in python then ruby in odesk or freelancers, I can develop my personal products in python while working on rails and php for living.

The Asset Pipeline

The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages such as CoffeeScript, Sass and ERB.

The first feature of the pipeline is to concatenate assets. This is important in a production environment, because it can reduce the number of requests that a browser makes to render a web page. Web browsers are limited in the number of requests that they can make in parallel, so fewer requests can mean faster loading for your application.

The second feature of the asset pipeline is asset minification or compression. For CSS files, this is done by removing whitespace and comments. For JavaScript, more complex processes can be applied. You can choose from a set of built in options or specify your own.

The third feature of the asset pipeline is that it allows coding assets via a higher-level language, with precompilation down to the actual assets. Supported languages include Sass for CSS, CoffeeScript for JavaScript, and ERB for both by default.

read more( and how it works on rails): http://guides.rubyonrails.org/asset_pipeline.html