Created a products partial and modified the products index to rener the partial. I also included a div in the layouts where the yield is called.
added a search method to products controller
Made the product display cleaner and navigatable. The product name and price are now a link to the specific product.
Refactored the index once again to render the partial: _product which will display all instances of Product: (@products).
Refactored and cleaned up the products show page to display product info. Also added links at the bottom to edit product and return to products page.
Added XHR request request in an inline <script> in ProductsController#index view. Update your ProductsController#index to respond to AJAX.
removed the script function display_search_results
Ported vanilla JS AJAX request with $.getScript
used respond_to generate response for request type get. response is filed in index.html.erb
generated view template to take care of the .done() callback used in products.js which displayed the products html data
Modified app to include foundation. Removed stylesheets.
removed foundation
added faker and kaminari. Removed foundation
reset seeds and added 100 random products
styled my index. Added some classes to my search bar
reformatted style of the layout after removing foundation
removed foundation
sorted the products in a descending order
described the actions of the page method that assists in paginating
added Kaminari helpers to include pagination links and display a message with number of entries vs displayed