Sha256: 6af6b619df980eaec70bff59646853724c1490119d3b3617fc4fb33f2d9bf093
Contents?: true
Size: 476 Bytes
Versions: 39
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
39 entries across 39 versions & 2 rubygems