generate view rails

rails generate controller Products index show

This command generates a controller named Products with two actions: index and show. It also creates corresponding views for these actions in the app/views/products directory.