learnt about activerecord and actioncontroller