module Incline::Extensions::ErbScaffoldGenerator
Adds one more view to the standard ERB views.
Public Class Methods
included(base)
click to toggle source
Override the “available_views” method to return one more view.
# File lib/incline/extensions/erb_scaffold_generator.rb, line 10 def self.included(base) base.class_eval do # point to our templates. source_root File.expand_path('../../../templates/erb/scaffold', __FILE__) protected undef available_views # the _list view can be included as a partial for parent items. def available_views %w(index new edit show _list _form) end end end
Public Instance Methods
available_views()
click to toggle source
the _list view can be included as a partial for parent items.
# File lib/incline/extensions/erb_scaffold_generator.rb, line 20 def available_views %w(index new edit show _list _form) end