Stock Management App in Rails 4