finally a working sample app had to downgrsade from rails 2 to rails 1.9.3