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.4.0 lib/rails/generators/component/USAGE
view_component-3.3.0 lib/rails/generators/component/USAGE
view_component-3.2.0 lib/rails/generators/component/USAGE
view_component-3.1.0 lib/rails/generators/component/USAGE
view_component-3.0.0 lib/rails/generators/component/USAGE
view_component-3.0.0.rc6 lib/rails/generators/component/USAGE
view_component-3.0.0.rc5 lib/rails/generators/component/USAGE
view_component-3.0.0.rc4 lib/rails/generators/component/USAGE
view_component-3.0.0.rc3 lib/rails/generators/component/USAGE
view_component-3.0.0.rc2 lib/rails/generators/component/USAGE
view_component-3.0.0.rc1 lib/rails/generators/component/USAGE
view_component-2.82.0 lib/rails/generators/component/USAGE
view_component-2.81.0 lib/rails/generators/component/USAGE
view_component-2.80.0 lib/rails/generators/component/USAGE
view_component-2.79.0 lib/rails/generators/component/USAGE
view_component-2.78.0 lib/rails/generators/component/USAGE
view_component-2.77.0 lib/rails/generators/component/USAGE
view_component-2.76.0 lib/rails/generators/component/USAGE
view_component-2.75.0 lib/rails/generators/component/USAGE
view_component-2.74.1 lib/rails/generators/component/USAGE