Template - Rails 7 view component Projet d'origine: Veracyte Stack: - Rails 7 - Ruby 3.1 - ViewComponent configuré comme on veut - Tailwind
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
566 B

Description:
============
Creates a new view component, test and preview files.
Pass the component name, either CamelCased or under_scored, and an optional list of attributes as arguments.
Example:
========
bin/rails generate view_component Profile name age
creates a Profile component and test:
Component: app/components/profile/component.rb
Template: app/components/profile/component.html.erb
Test: spec/components/profile_component_spec.rb
Preview: app/components/profile/component_preview.rb