Generated the product model
Fixed route path and conflict with rails versions 4.0.0 by adding params.permit
refactored the products_controller to respond to html/json