create by JokeNguyen193 using Ruby on Rails 3 tutorial