Sha256: 38370219ea2dc82d915e3a367bced39381a5ae9da1997da7d7ffd4242a2fa945

Contents?: true

Size: 475 Bytes

Versions: 161

Compression:

Stored size: 475 Bytes

Contents

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

Version data entries

161 entries across 161 versions & 3 rubygems

Version Path
view_component-3.20.0 lib/rails/generators/component/USAGE
view_component-3.19.0 lib/rails/generators/component/USAGE
view_component-3.18.0 lib/rails/generators/component/USAGE
view_component-3.17.0 lib/rails/generators/component/USAGE
view_component-3.16.0 lib/rails/generators/component/USAGE
view_component-3.15.1 lib/rails/generators/component/USAGE
view_component-3.15.0 lib/rails/generators/component/USAGE
view_component-3.14.0 lib/rails/generators/component/USAGE
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/view_component-2.83.0/lib/rails/generators/component/USAGE
view_component-3.13.0 lib/rails/generators/component/USAGE
view_component-3.12.1 lib/rails/generators/component/USAGE
view_component-3.12.0 lib/rails/generators/component/USAGE
view_component-3.11.0 lib/rails/generators/component/USAGE
view_component-3.10.0 lib/rails/generators/component/USAGE
view_component-2.83.0 lib/rails/generators/component/USAGE
view_component-3.9.0 lib/rails/generators/component/USAGE
view_component-3.8.0 lib/rails/generators/component/USAGE
view_component-3.7.0 lib/rails/generators/component/USAGE
view_component-3.6.0 lib/rails/generators/component/USAGE
view_component-3.5.0 lib/rails/generators/component/USAGE