Handled error and added error.erb
Merge pull request #7 from betahikaru/tb_refactor

Handled error and added error.erb