Ruby on Rails Find or Create
sample Code:
row = Category.find_or_create_by_name("General")
row = ItemSupplier.find_or_create_by_suplier_id(1,2)
row = Category.find_or_create_by_name("General")
row = ItemSupplier.find_or_create_by_suplier_id(1,2)


0 Comments:
Post a Comment
<< Home