Sandthorn Product Example

Listing Active Record products

New product

Name Price Stock status
sfsdaa 23421 instock Show Edit Destroy
Teisting 190 instock Show Edit Destroy
Coke 12 instock Show Edit Destroy
sssssssssss 12456 outofstock Show Edit Destroy
test79 79 outofstock Show Edit Destroy
lemon 1 instock Show Edit Destroy
gg 0 discontinued Show Edit Destroy

Active Record database table (products)

{"id"=>"5", "name"=>"sfsdaa", "price"=>"23421", "stock_status"=>"instock", "created_at"=>"2014-08-13 14:18:37.997119", "updated_at"=>"2017-12-22 19:22:02.796975"}

{"id"=>"24", "name"=>"Teisting", "price"=>"190", "stock_status"=>"instock", "created_at"=>"2018-04-26 19:48:10.290418", "updated_at"=>"2018-04-26 19:48:10.290418"}

{"id"=>"25", "name"=>"Coke", "price"=>"12", "stock_status"=>"instock", "created_at"=>"2018-06-20 17:06:22.912408", "updated_at"=>"2018-06-20 17:06:22.912408"}

{"id"=>"6", "name"=>"sssssssssss", "price"=>"12456", "stock_status"=>"outofstock", "created_at"=>"2014-08-15 08:12:00.738468", "updated_at"=>"2018-07-22 22:01:14.777477"}

{"id"=>"20", "name"=>"test79", "price"=>"79", "stock_status"=>"outofstock", "created_at"=>"2017-04-28 11:36:09.717674", "updated_at"=>"2018-08-09 21:35:28.725748"}

{"id"=>"26", "name"=>"lemon", "price"=>"1", "stock_status"=>"instock", "created_at"=>"2018-10-19 08:53:40.840277", "updated_at"=>"2018-10-19 08:53:55.391151"}

{"id"=>"59", "name"=>"gg", "price"=>"0", "stock_status"=>"discontinued", "created_at"=>"2018-11-30 16:50:21.186139", "updated_at"=>"2018-11-30 16:50:21.186139"}