File: USAGE

package info (click to toggle)
ruby-view-component 2.74.1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 3,156 kB
  • sloc: ruby: 6,731; sh: 163; javascript: 10; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
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