This is a rails 4 application which has HABTM association explained