Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vueonrails/vue-form-for

A form component for the Vue on Rails (@vueonrails) project
https://github.com/vueonrails/vue-form-for

Last synced: about 1 month ago
JSON representation

A form component for the Vue on Rails (@vueonrails) project

Awesome Lists containing this project

README

        

# Vue-Form-For

`` is a form component. It is created with [Vue on Rails](https://vueonrails.com) products in mind.

## Install

Installing using Vue on Rails

```ruby
rails generate vue --form
```

```javascript
yarn add vue-form-for

//or
npm install vue-form-for
```

## Usage

```javascript
import form from "vue-form-for";
Vue.use(form);
```

At `` of `.vue` or any HTML with Vue instance presence.

```javascript




```

`form-for` will be in edit mode in two situations: when Rails route is in edit route `/something/(:id)/edit` or when the edit attribute is true.

```javascript




```

## Nested Form

`form-for` supports nested form via `fields-for`

```



```

## Development

Please run the following `yarn add` command to add your development package into your Rails product.

```
yarn add file:/Desktop/vue-form-for
```
`file:/Desktop/vue-form-for` should be the path to this repo directory

## LICENSE

MIT

## Contact

[email protected] or [@ytbryan](http://twitter.com/ytbryan)

## Special Thanks

Special thanks to Andy for writing https://medium.com/@mindovermiles262/triple-nested-forms-in-rails-dedbcccb5799