rails 4.0.1 sample javascript CRUD