Terminal Commands:
rails g model Product name:string quantity:integer price:decimal{12,2}
rake db:migrate
Lates create controller.
Terminal Commands:
rails g controller Products
Controller Code:
class HistoriesController < ApplicationController
def create
file = Dir.glob(...