Description:
¶ ↑
Creates a new component and test. Pass the component name, either CamelCased or under_scored, and an optional list of attributes as arguments.
Example:
¶ ↑
bin/rails generate component Profile name age creates a Profile component and test: Component: app/components/profile_component.rb Template: app/components/profile_component.html.erb Test: test/components/profile_component_test.rb