Class: Para::FormGenerator
- Inherits:
-
Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Generators::NamedBase
- Para::FormGenerator
- 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
Methods included from Generators::NameHelpers
#namespaced_class_name, #plural_namespaced_path, #singular_namespaced_path
Instance Method Details
#generate_form ⇒ Object
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 |