Rails with angularJs