Rails 2.1.0 – named_scope

New version of rails comes with a great feature called named_scope.

# in your model.rb

and you can use its as:

# somewhere in your code

own application configuration

be sure to enter spaces, NOT tabs

in application:

Exception handling

somewhere in controller

Double buffering

This is an example, how to do and use double buffering (offscreen window) to create smooth animations