Sha256: 0a80ff6e4e13b7ffd99e14326a8f0fa5f37401586b9398a77f285feb5773b0aa

Contents?: true

Size: 1.81 KB

Versions: 5

Compression:

Stored size: 1.81 KB

Contents

# ViewComponentHelper

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/view_component_helper`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

## Installation

Install the gem and add to the application's Gemfile by executing:

    $ bundle add view_component_helper

If bundler is not being used to manage dependencies, install the gem by executing:

    $ gem install view_component_helper

## Usage

##### Please refer to ViewComponent website for more details.

To use ViewComponent, you'll need to follow the example below. By utilizing this gem, you can make calls like the following:

```
# Before
<%= render(MessageComponent.new(name: "World")) %>

# After
<%= render_rc("messageComponent", name: "World") %>
```

Make sure to incorporate ViewComponent as described in the reference link to enhance your application's functionality.



## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yapr/view_component_helper.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
view_component_helper-0.4.2 README.md
view_component_helper-0.4.1 README.md
view_component_helper-0.4.0 README.md
view_component_helper-0.3.0 README.md
view_component_helper-0.2.0 README.md