Drink or code ... Why should you choose ?

Render your pages different...

You probably remember doing the following in Rails 2 : respond_to do | format | format . html format . json { render :json => @object } end In rails 3, you can replace those calls with : respond_...

Introduction to Rails Engines

Since Rails 2.3 as a plugin and Rails 3.0 natively, it's possible, for a gem, to be also a "Rails Engine". Being that, the plugin will be able to patch your rails application by adding it several features without you having to configure anything. ...

Create your own CarrierWave...

If you need to manage images in a rails application, I can only recommand CarrierWave . That library will allow you to easily manage files upload. But also post processing on images, such as changing their sizes. I use CarrierWave on this blo...

Rails : number of test and ...

I'm a bit obsessed by my applications statistics. So on many of them, I build tools allowing me to generate graphics with several evolution indicators of theirs datas over time. On RefStats for example, this graphic shows the evolution of the number...

Rails : add a validation error

You probably already know (otherwise, I highly invite you to read the Ruby on Rails bases ) how easy it is to validate datas with our favorite framework :) if myDatas . save #The datas have been saved else #There's an err...