Class: SimpleBootstrapFormsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SimpleBootstrapFormsGenerator
- Defined in:
- lib/generators/simple_bootstrap_forms_generator.rb
Instance Method Summary collapse
- #copy_error_parial ⇒ Object
- #copy_form_builder ⇒ Object
- #copy_index_file ⇒ Object
- #copy_initializer_file ⇒ Object
Instance Method Details
#copy_error_parial ⇒ Object
14 15 16 |
# File 'lib/generators/simple_bootstrap_forms_generator.rb', line 14 def copy_error_parial copy_file '_error.html.erb', 'app/views/shared/_error.html.erb' end |
#copy_form_builder ⇒ Object
10 11 12 |
# File 'lib/generators/simple_bootstrap_forms_generator.rb', line 10 def copy_form_builder copy_file '_form.html.erb', 'lib/templates/erb/scaffold/_form.html.erb' end |
#copy_index_file ⇒ Object
18 19 20 |
# File 'lib/generators/simple_bootstrap_forms_generator.rb', line 18 def copy_index_file copy_file 'index.html.erb', 'lib/templates/erb/scaffold/index.html.erb' end |
#copy_initializer_file ⇒ Object
6 7 8 |
# File 'lib/generators/simple_bootstrap_forms_generator.rb', line 6 def copy_initializer_file copy_file 'simple.rb', 'config/initializers/simple_boostrap_forms.rb' end |