derive by ruby on rails tutrial