Skip to content

Commit

Permalink
Merge pull request #274 from Spone/master
Browse files Browse the repository at this point in the history
Fix docs, closing #272
  • Loading branch information
jamesmk authored Jul 21, 2017
2 parents 8102692 + 32dc8d2 commit bc7d3f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/helpers/form_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Generated forms start you off on a good place to manage the object's content, but chances are you'll want to customize them and add more fields as you data model evolves. Fae provides a number of form helpers to help you leverage Fae's built in features will allowing customization when needed.

Form helpers in Fae use the [simple_form](https://github.com/plataformatec/simple_form) gem as it's base. In most cases options that simple_form accepts can be passed into these helpers directly. The reason why we've established these helpers it to allow for customized options. They also provide a method to directly hook into Fae, so we can push out features and bugfixes.
Form helpers in Fae use the [simple_form](https://github.com/plataformatec/simple_form) gem as it's base. In most cases options that simple_form accepts can be passed into these helpers directly. The reason why we've established these helpers is to allow for customized options. They also provide a method to directly hook into Fae, so we can push out features and bugfixes.

* [Format](#format)
* [Fae Input](#fae-input)
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ To add form validations to our articles, we just need to define them in `app/mod

```ruby
validates :title, presence: true
validated :slug, Fae.validation_helpers.slug
validates :slug, Fae.validation_helpers.slug
```

Fae uses [Judge](https://github.com/joecorcoran/judge) for client side validations. Judge requires you to expose any attributes that have a uniqueness validation. You can do this in `config/initializers/jugde.rb`:
Expand Down

0 comments on commit bc7d3f6

Please sign in to comment.