Class: Para::FormGenerator

Inherits:
Generators::NamedBase show all
Includes:
Admin::BaseHelper, Generators::FieldHelpers
Defined in:
lib/generators/para/form/form_generator.rb

Instance Method Summary collapse

Methods included from Admin::BaseHelper

#find_partial_for, #find_relation_name_for, #flash_message, #registered_components_options, #resource_title_for, #template_path_lookup

Methods included from Helpers::ResourceName

#resource_name

Methods included from Generators::NameHelpers

#namespaced_class_name, #plural_namespaced_path, #singular_namespaced_path

Instance Method Details

#generate_formObject



8
9
10
11
12
13
# File 'lib/generators/para/form/form_generator.rb', line 8

def generate_form
  template(
    "_form.html.haml",
    "app/views/admin/#{ plural_namespaced_path }/_form.html.haml"
  )
end