Class: FieldableForm::BootstrapGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FieldableForm::BootstrapGenerator
- Defined in:
- lib/generators/fieldable_form/bootstrap/bootstrap_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_assets ⇒ Object
5 6 7 |
# File 'lib/generators/fieldable_form/bootstrap/bootstrap_generator.rb', line 5 def generate_assets template 'fieldable_form.js.coffee', "app/assets/javascripts/#{uname}.js.coffee" end |
#generate_helpers ⇒ Object
9 10 11 |
# File 'lib/generators/fieldable_form/bootstrap/bootstrap_generator.rb', line 9 def generate_helpers template 'fieldable_form_helper.rb', "app/helpers/#{uname}_helper.rb" end |
#generate_views ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/generators/fieldable_form/bootstrap/bootstrap_generator.rb', line 13 def generate_views template 'views/builder/_text_field.html.erb', "app/views/#{pname}/builder/_text_field.html.erb" template 'views/builder/_drop_down.html.erb', "app/views/#{pname}/builder/_drop_down.html.erb" template 'views/builder/_check_box.html.erb', "app/views/#{pname}/builder/_check_box.html.erb" template 'views/entry/_field.html.erb', "app/views/#{pname}/entry/_field.html.erb" template 'views/builder/_fields.html.erb', "app/views/#{pname}/builder/_fields.html.erb" end |