I have a rails app where there are users, shops and products these three are interconnected to each other, i have search option for the user to search products i want it to be location based for that right now i have a STATE and CITY model but i want to change to LOCATION model, i have a n admin panel from where the admin can add state and city products what i want is instead of state and city admin will have a new option called LOCATION that he can add to SHOPS and the same location will be added automatically to all the products that the shop will add.
Add a new location field to product, product location will be same as shop location.
Right now user can search products on basis of state and city...but the search will be changes to product location...
Right now after the search bar there is an state and city dropdown it will be changed to a auto complete field. Read Less