Added rails 3 generator

Added new generator for rails 3