create function for finding the event duration for different period of time, also improve event.html.erb for showing the time
event functions has simple tested with rails console and fixed a little bug, it work now and ready to be test with factory girl...
get rid of binding.pry, you can not test it with the real html because there are no params for event function, but its totally fine to do with rspec
Merge pull request #6 from prurph/yiyang_ajax_event

Yiyang event model functionality