change file mode of rails.
add basic function for student.