rails-backbone-forms 0.0.3 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +27 -9
- data/lib/rails/backbone/forms/version.rb +1 -1
- data/rails-backbone-forms.gemspec +3 -3
- metadata +4 -5
data/README.md
CHANGED
@@ -1,24 +1,42 @@
|
|
1
1
|
rails-backbone-forms
|
2
2
|
====================
|
3
3
|
|
4
|
-
This gem
|
4
|
+
This gem provides a version of the
|
5
|
+
[backbone-forms library](https://github.com/powmedia/backbone-forms)
|
6
|
+
designed to work with the Rails 3.1 asset pipeline. It is versioned to match
|
7
|
+
the backbone-forms library and currently supports 0.10.1.
|
5
8
|
|
6
|
-
|
9
|
+
# <a name="installation"></a>Install
|
7
10
|
|
8
|
-
gem 'backbone-forms
|
11
|
+
gem 'rails-backbone-forms'
|
9
12
|
|
10
|
-
|
13
|
+
# <a name="configuration"></a>Configure
|
14
|
+
|
15
|
+
In application.js, add the following:
|
16
|
+
|
17
|
+
```javascript
|
18
|
+
//= require backbone-forms
|
19
|
+
```
|
20
|
+
|
21
|
+
If you're using bootstrap and want to use backbone-form's templates for it, you
|
22
|
+
can instead use:
|
11
23
|
|
12
24
|
```javascript
|
13
|
-
|
14
|
-
//= require backbone-forms-rails
|
25
|
+
//= require backbone-forms-bootstrap
|
15
26
|
```
|
16
27
|
|
28
|
+
Same deal with application.css:
|
29
|
+
|
17
30
|
```css
|
18
|
-
/* In application.css */
|
19
31
|
/*
|
20
|
-
*= require backbone-forms
|
32
|
+
*= require backbone-forms
|
21
33
|
*/
|
22
34
|
```
|
23
35
|
|
24
|
-
|
36
|
+
Or, for bootstrap:
|
37
|
+
|
38
|
+
```css
|
39
|
+
/*
|
40
|
+
*= require backbone-forms-bootstrap
|
41
|
+
*/
|
42
|
+
```
|
@@ -8,13 +8,13 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ['Aubrey Holland']
|
9
9
|
s.email = ['aubreyholland@gmail.com']
|
10
10
|
s.homepage = ""
|
11
|
-
s.summary = %q{
|
12
|
-
s.description = %q{
|
11
|
+
s.summary = %q{A wrapper for backbone-forms in the Rails asset pipeline}
|
12
|
+
s.description = %q{Rails 3.1 support for the backbone-forms library}
|
13
13
|
|
14
14
|
s.rubyforge_project = 'rails-backbone-forms'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
-
s.require_paths = [
|
19
|
+
s.require_paths = ['lib']
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-backbone-forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,10 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description:
|
15
|
-
a "Form framework for BackboneJS with nested forms, editable lists and validation"'
|
14
|
+
description: Rails 3.1 support for the backbone-forms library
|
16
15
|
email:
|
17
16
|
- aubreyholland@gmail.com
|
18
17
|
executables: []
|
@@ -63,5 +62,5 @@ rubyforge_project: rails-backbone-forms
|
|
63
62
|
rubygems_version: 1.8.24
|
64
63
|
signing_key:
|
65
64
|
specification_version: 3
|
66
|
-
summary:
|
65
|
+
summary: A wrapper for backbone-forms in the Rails asset pipeline
|
67
66
|
test_files: []
|