Sha256: 6d03beb1d997a23be5874a96e25176db6ba12aba076f1bb3c6a95e383eeabbfc
Contents?: true
Size: 476 Bytes
Versions: 36
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true require "rails/generators/base" module ShopifyApp module Generators class ProductsControllerGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def create_products_controller template("products_controller.rb", "app/controllers/products_controller.rb") end def add_products_route route("get '/products', :to => 'products#index'") end end end end
Version data entries
36 entries across 36 versions & 1 rubygems