Class: Rails::Datatable::ResourceGenerator
- Inherits:
-
Generators::NamedBase
- Object
- Generators::NamedBase
- Rails::Datatable::ResourceGenerator
- Defined in:
- lib/generators/rails/datatable/resource_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_config_file ⇒ Object
9 10 11 12 |
# File 'lib/generators/rails/datatable/resource_generator.rb', line 9 def generate_config_file template "items_datatable.rb.erb", "app/datatables/#{file_path.tr('/', '_').pluralize}_datatable.rb" template "_item.html.erb", "app/views/#{file_path.tr('/', '_').pluralize}/_#{file_path.tr('/', '_')}.html.erb" end |