Sandthorn Product Example

Listing Active Record products

New product

Name Price Stock status
sssssssssss 12456 instock Show Edit Destroy
test79 79 instock Show Edit Destroy
sfsdaa 23421 instock Show Edit Destroy
Teisting 190 instock Show Edit Destroy
Coke 12 instock Show Edit Destroy

Active Record database table (products)

{"id"=>"6", "name"=>"sssssssssss", "price"=>"12456", "stock_status"=>"instock", "created_at"=>"2014-08-15 08:12:00.738468", "updated_at"=>"2017-01-13 10:32:25.912109"}

{"id"=>"20", "name"=>"test79", "price"=>"79", "stock_status"=>"instock", "created_at"=>"2017-04-28 11:36:09.717674", "updated_at"=>"2017-04-28 11:36:09.717674"}

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