flat-ui-rails 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -26
- data/lib/flat-ui-rails/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
# Flat-UI for Rails Asset Pipeline
|
|
2
2
|
|
|
3
|
-
[Parsley.js](https://github.com/guillaumepotier/Parsley.js) is an awesome form validation library ([documentation](http://parsleyjs.org/documentation.html)).
|
|
4
|
-
This gem makes it easy to use it with Rails Asset Pipeline.
|
|
5
|
-
|
|
6
3
|
## Installation
|
|
7
4
|
|
|
8
5
|
Add this line to your application's Gemfile:
|
|
9
6
|
|
|
10
|
-
gem "
|
|
7
|
+
gem "flat-ui-rails"
|
|
11
8
|
|
|
12
9
|
And then execute:
|
|
13
10
|
|
|
14
11
|
$ bundle
|
|
15
12
|
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
Add the following to your `app/assets/javascripts/application.js`:
|
|
19
|
-
|
|
20
|
-
//= require jquery
|
|
21
|
-
//= require parsley
|
|
22
|
-
|
|
23
|
-
To use the `extend` library, add this right after:
|
|
24
|
-
|
|
25
|
-
//= require parsley.extend
|
|
26
|
-
|
|
27
|
-
Finally, if you want to use a different i18n:
|
|
28
|
-
|
|
29
|
-
//= require parsley.i18n.fr
|
|
30
|
-
|
|
31
|
-
See the complete [Parsley.js documentation](http://parsleyjs.org/documentation.html).
|
|
32
|
-
|
|
33
|
-
## Versions
|
|
34
|
-
|
|
35
|
-
The gem follows Parsley.js's versions. If the gem version is `1.1.10.0`, then `1.1.10` is a version of Parsley.js and `0`
|
|
36
|
-
is a patch level of the gem itself.
|
|
37
|
-
|
|
38
13
|
## Contributing
|
|
39
14
|
|
|
40
15
|
1. Fork it
|