Class: Railwind::TabGenerator
- Inherits:
- 
      Rails::Generators::Base
      
        - Object
- Rails::Generators::Base
- Railwind::TabGenerator
 
- Defined in:
- lib/railwind/generators/tab_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_component_file ⇒ Object
| 7 8 9 10 11 | # File 'lib/railwind/generators/tab_generator.rb', line 7 def create_component_file copy_file "tabs/tab_component.rb", "app/components/tab_component.rb" copy_file "tabs/_tab_component.html.erb", "app/components/tab_component.html.erb" copy_file "tabs/tabs_controller.js", "app/javascript/controllers/tabs_controller.js" end |