jtable-rails 0.2.0 → 0.2.1
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 +23 -1
- data/VERSION +1 -1
- data/jtable-rails.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -5,4 +5,26 @@
|
|
5
5
|
|
6
6
|
[jtable-rails RubyGem](https://github.com/yelvert/jtable-rails)
|
7
7
|
|
8
|
-
[jTable.net source](https://github.com/yelvert/jtable-site)
|
8
|
+
[jTable.net source](https://github.com/yelvert/jtable-site)
|
9
|
+
|
10
|
+
|
11
|
+
Usage
|
12
|
+
=====
|
13
|
+
|
14
|
+
Basic
|
15
|
+
-----
|
16
|
+
class Person < ActiveRecord::Base
|
17
|
+
jtable :basic, :first_name, :last_name
|
18
|
+
end
|
19
|
+
|
20
|
+
This creates a jTable called *basic* with the attributes *first_name* and *last_name*.
|
21
|
+
|
22
|
+
One-to-One Association
|
23
|
+
----------------------
|
24
|
+
class Person < ActiveRecord::Base
|
25
|
+
has_one :place
|
26
|
+
|
27
|
+
jtable :one_to_one, :first_name, :last_name, {:place => [:city, :state]}
|
28
|
+
end
|
29
|
+
|
30
|
+
This creates a jTable called *one_to_one* with the *person* attributes *first_name* and *last_name*, and the *place_attributes* *city* and *state*
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/jtable-rails.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Taylor Yelverton
|
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
requirements:
|
229
229
|
- - ">="
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
hash:
|
231
|
+
hash: 882244993807923382
|
232
232
|
segments:
|
233
233
|
- 0
|
234
234
|
version: "0"
|