Sandthorn Product Example

Listing Active Record products

New product

Name Price Stock status
lemon 1 instock Show Edit Destroy
gg 0 discontinued Show Edit Destroy
23 12 instock Show Edit Destroy
sssssssssss123 12456 outofstock Show Edit Destroy
test79 792 outofstock Show Edit Destroy
Pennello 34 outofstock Show Edit Destroy

Active Record database table (products)

{"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"}

{"id"=>"25", "name"=>"23", "price"=>"12", "stock_status"=>"instock", "created_at"=>"2018-06-20 17:06:22.912408", "updated_at"=>"2019-04-03 15:53:28.434256"}

{"id"=>"6", "name"=>"sssssssssss123", "price"=>"12456", "stock_status"=>"outofstock", "created_at"=>"2014-08-15 08:12:00.738468", "updated_at"=>"2019-04-17 00:16:25.20761"}

{"id"=>"20", "name"=>"test79", "price"=>"792", "stock_status"=>"outofstock", "created_at"=>"2017-04-28 11:36:09.717674", "updated_at"=>"2019-05-30 01:00:05.960654"}

{"id"=>"60", "name"=>"Pennello", "price"=>"34", "stock_status"=>"outofstock", "created_at"=>"2019-07-06 23:22:29.043959", "updated_at"=>"2019-07-06 23:22:29.043959"}