rails_table_for 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/new-user-story.md +20 -0
- data/.github/workflows/ruby.yml +2 -2
- data/Gemfile.lock +1 -1
- data/README.md +14 -12
- data/docs/.gitignore +3 -0
- data/docs/404.html +24 -0
- data/docs/Gemfile +16 -0
- data/docs/Gemfile.lock +256 -0
- data/docs/_config.yml +21 -0
- data/docs/index.md +45 -0
- data/lib/rails_table_for/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44249aa8449cd242b2eb6db551f8cda5d79586c291c85d9343f85bebd595780f
|
|
4
|
+
data.tar.gz: 77230cee0867062c47ad125e3fdf53014da8907f49c6817dcbe99fcfa4fa2dfa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a59c7c906827b899ebd41781a3722cd0769daa06886b8a6c90393d66953b578b4a36dce9afacea171e3fe69c4f84f45f26837785092471df9264aa3aa0ca55d9
|
|
7
|
+
data.tar.gz: 3413768779ed27d85ad977ad2e5d1472797f3dc85cce2887d611aa05e00c317446b7ed9a1303d62e991627a14b4ab08df00a13442a00f94b08d83ad8bf85d472
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: New User Story
|
|
3
|
+
about: Request for new user functionality
|
|
4
|
+
title: "[Feature Request]"
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: acroos
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Story
|
|
11
|
+
|
|
12
|
+
What is the new functionality? How will it be used? Please provide a code snippet if possible
|
|
13
|
+
|
|
14
|
+
## Acceptance Criteria
|
|
15
|
+
|
|
16
|
+
- List of criteria to consider this task finished
|
|
17
|
+
|
|
18
|
+
## Additional Details
|
|
19
|
+
|
|
20
|
+
- Additional implementation details that may prove helpful
|
data/.github/workflows/ruby.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# RailsTableFor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[![Gem Version][GV img]][Gem Version]
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Generate HTML tables from ActiveRecord collections!
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -16,20 +16,22 @@ And then execute:
|
|
|
16
16
|
|
|
17
17
|
$ bundle
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## Documentation
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
TODO: Write usage instructions here
|
|
21
|
+
Check out [the docs site](https://acroos.site/rails_table_for)
|
|
26
22
|
|
|
27
23
|
## Development
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
- to install dependencies: `bundle install`
|
|
26
|
+
- to run tests: `bundle exec rake` (or `rake test`)
|
|
27
|
+
- to build local `.gem` file: `bundle exec rake build`
|
|
28
|
+
- to install gem on your machine: `bundle exec rake install`
|
|
29
|
+
- to bump the version: `bundle exec bump (patch|minor|major)`
|
|
30
|
+
- to release: `bundle exec rake release`
|
|
32
31
|
|
|
33
32
|
## Contributing
|
|
34
33
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
34
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/acroos/rails_table_for.
|
|
35
|
+
|
|
36
|
+
[Gem Version]: https://rubygems.org/gems/rails_table_for
|
|
37
|
+
[GV img]: https://badge.fury.io/rb/rails_table_for.png
|
data/docs/.gitignore
ADDED
data/docs/404.html
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<style type="text/css" media="screen">
|
|
6
|
+
.container {
|
|
7
|
+
margin: 10px auto;
|
|
8
|
+
max-width: 600px;
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
h1 {
|
|
12
|
+
margin: 30px 0;
|
|
13
|
+
font-size: 4em;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
letter-spacing: -1px;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
|
|
19
|
+
<div class="container">
|
|
20
|
+
<h1>404</h1>
|
|
21
|
+
|
|
22
|
+
<p><strong>Page not found :(</strong></p>
|
|
23
|
+
<p>The requested page could not be found.</p>
|
|
24
|
+
</div>
|
data/docs/Gemfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
group :jekyll_plugins do
|
|
4
|
+
gem "github-pages", "~> 204"
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
8
|
+
# and associated library.
|
|
9
|
+
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
|
|
10
|
+
gem "tzinfo", "~> 1.2"
|
|
11
|
+
gem "tzinfo-data"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Performance-booster for watching directories on Windows
|
|
15
|
+
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
|
|
16
|
+
|
data/docs/Gemfile.lock
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
activesupport (6.0.2.2)
|
|
5
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
6
|
+
i18n (>= 0.7, < 2)
|
|
7
|
+
minitest (~> 5.1)
|
|
8
|
+
tzinfo (~> 1.1)
|
|
9
|
+
zeitwerk (~> 2.2)
|
|
10
|
+
addressable (2.7.0)
|
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
12
|
+
coffee-script (2.4.1)
|
|
13
|
+
coffee-script-source
|
|
14
|
+
execjs
|
|
15
|
+
coffee-script-source (1.11.1)
|
|
16
|
+
colorator (1.1.0)
|
|
17
|
+
commonmarker (0.17.13)
|
|
18
|
+
ruby-enum (~> 0.5)
|
|
19
|
+
concurrent-ruby (1.1.6)
|
|
20
|
+
dnsruby (1.61.3)
|
|
21
|
+
addressable (~> 2.5)
|
|
22
|
+
em-websocket (0.5.1)
|
|
23
|
+
eventmachine (>= 0.12.9)
|
|
24
|
+
http_parser.rb (~> 0.6.0)
|
|
25
|
+
ethon (0.12.0)
|
|
26
|
+
ffi (>= 1.3.0)
|
|
27
|
+
eventmachine (1.2.7)
|
|
28
|
+
execjs (2.7.0)
|
|
29
|
+
faraday (1.0.0)
|
|
30
|
+
multipart-post (>= 1.2, < 3)
|
|
31
|
+
ffi (1.12.2)
|
|
32
|
+
forwardable-extended (2.6.0)
|
|
33
|
+
gemoji (3.0.1)
|
|
34
|
+
github-pages (204)
|
|
35
|
+
github-pages-health-check (= 1.16.1)
|
|
36
|
+
jekyll (= 3.8.5)
|
|
37
|
+
jekyll-avatar (= 0.7.0)
|
|
38
|
+
jekyll-coffeescript (= 1.1.1)
|
|
39
|
+
jekyll-commonmark-ghpages (= 0.1.6)
|
|
40
|
+
jekyll-default-layout (= 0.1.4)
|
|
41
|
+
jekyll-feed (= 0.13.0)
|
|
42
|
+
jekyll-gist (= 1.5.0)
|
|
43
|
+
jekyll-github-metadata (= 2.13.0)
|
|
44
|
+
jekyll-mentions (= 1.5.1)
|
|
45
|
+
jekyll-optional-front-matter (= 0.3.2)
|
|
46
|
+
jekyll-paginate (= 1.1.0)
|
|
47
|
+
jekyll-readme-index (= 0.3.0)
|
|
48
|
+
jekyll-redirect-from (= 0.15.0)
|
|
49
|
+
jekyll-relative-links (= 0.6.1)
|
|
50
|
+
jekyll-remote-theme (= 0.4.1)
|
|
51
|
+
jekyll-sass-converter (= 1.5.2)
|
|
52
|
+
jekyll-seo-tag (= 2.6.1)
|
|
53
|
+
jekyll-sitemap (= 1.4.0)
|
|
54
|
+
jekyll-swiss (= 1.0.0)
|
|
55
|
+
jekyll-theme-architect (= 0.1.1)
|
|
56
|
+
jekyll-theme-cayman (= 0.1.1)
|
|
57
|
+
jekyll-theme-dinky (= 0.1.1)
|
|
58
|
+
jekyll-theme-hacker (= 0.1.1)
|
|
59
|
+
jekyll-theme-leap-day (= 0.1.1)
|
|
60
|
+
jekyll-theme-merlot (= 0.1.1)
|
|
61
|
+
jekyll-theme-midnight (= 0.1.1)
|
|
62
|
+
jekyll-theme-minimal (= 0.1.1)
|
|
63
|
+
jekyll-theme-modernist (= 0.1.1)
|
|
64
|
+
jekyll-theme-primer (= 0.5.4)
|
|
65
|
+
jekyll-theme-slate (= 0.1.1)
|
|
66
|
+
jekyll-theme-tactile (= 0.1.1)
|
|
67
|
+
jekyll-theme-time-machine (= 0.1.1)
|
|
68
|
+
jekyll-titles-from-headings (= 0.5.3)
|
|
69
|
+
jemoji (= 0.11.1)
|
|
70
|
+
kramdown (= 1.17.0)
|
|
71
|
+
liquid (= 4.0.3)
|
|
72
|
+
mercenary (~> 0.3)
|
|
73
|
+
minima (= 2.5.1)
|
|
74
|
+
nokogiri (>= 1.10.4, < 2.0)
|
|
75
|
+
rouge (= 3.13.0)
|
|
76
|
+
terminal-table (~> 1.4)
|
|
77
|
+
github-pages-health-check (1.16.1)
|
|
78
|
+
addressable (~> 2.3)
|
|
79
|
+
dnsruby (~> 1.60)
|
|
80
|
+
octokit (~> 4.0)
|
|
81
|
+
public_suffix (~> 3.0)
|
|
82
|
+
typhoeus (~> 1.3)
|
|
83
|
+
html-pipeline (2.12.3)
|
|
84
|
+
activesupport (>= 2)
|
|
85
|
+
nokogiri (>= 1.4)
|
|
86
|
+
http_parser.rb (0.6.0)
|
|
87
|
+
i18n (0.9.5)
|
|
88
|
+
concurrent-ruby (~> 1.0)
|
|
89
|
+
jekyll (3.8.5)
|
|
90
|
+
addressable (~> 2.4)
|
|
91
|
+
colorator (~> 1.0)
|
|
92
|
+
em-websocket (~> 0.5)
|
|
93
|
+
i18n (~> 0.7)
|
|
94
|
+
jekyll-sass-converter (~> 1.0)
|
|
95
|
+
jekyll-watch (~> 2.0)
|
|
96
|
+
kramdown (~> 1.14)
|
|
97
|
+
liquid (~> 4.0)
|
|
98
|
+
mercenary (~> 0.3.3)
|
|
99
|
+
pathutil (~> 0.9)
|
|
100
|
+
rouge (>= 1.7, < 4)
|
|
101
|
+
safe_yaml (~> 1.0)
|
|
102
|
+
jekyll-avatar (0.7.0)
|
|
103
|
+
jekyll (>= 3.0, < 5.0)
|
|
104
|
+
jekyll-coffeescript (1.1.1)
|
|
105
|
+
coffee-script (~> 2.2)
|
|
106
|
+
coffee-script-source (~> 1.11.1)
|
|
107
|
+
jekyll-commonmark (1.3.1)
|
|
108
|
+
commonmarker (~> 0.14)
|
|
109
|
+
jekyll (>= 3.7, < 5.0)
|
|
110
|
+
jekyll-commonmark-ghpages (0.1.6)
|
|
111
|
+
commonmarker (~> 0.17.6)
|
|
112
|
+
jekyll-commonmark (~> 1.2)
|
|
113
|
+
rouge (>= 2.0, < 4.0)
|
|
114
|
+
jekyll-default-layout (0.1.4)
|
|
115
|
+
jekyll (~> 3.0)
|
|
116
|
+
jekyll-feed (0.13.0)
|
|
117
|
+
jekyll (>= 3.7, < 5.0)
|
|
118
|
+
jekyll-gist (1.5.0)
|
|
119
|
+
octokit (~> 4.2)
|
|
120
|
+
jekyll-github-metadata (2.13.0)
|
|
121
|
+
jekyll (>= 3.4, < 5.0)
|
|
122
|
+
octokit (~> 4.0, != 4.4.0)
|
|
123
|
+
jekyll-mentions (1.5.1)
|
|
124
|
+
html-pipeline (~> 2.3)
|
|
125
|
+
jekyll (>= 3.7, < 5.0)
|
|
126
|
+
jekyll-optional-front-matter (0.3.2)
|
|
127
|
+
jekyll (>= 3.0, < 5.0)
|
|
128
|
+
jekyll-paginate (1.1.0)
|
|
129
|
+
jekyll-readme-index (0.3.0)
|
|
130
|
+
jekyll (>= 3.0, < 5.0)
|
|
131
|
+
jekyll-redirect-from (0.15.0)
|
|
132
|
+
jekyll (>= 3.3, < 5.0)
|
|
133
|
+
jekyll-relative-links (0.6.1)
|
|
134
|
+
jekyll (>= 3.3, < 5.0)
|
|
135
|
+
jekyll-remote-theme (0.4.1)
|
|
136
|
+
addressable (~> 2.0)
|
|
137
|
+
jekyll (>= 3.5, < 5.0)
|
|
138
|
+
rubyzip (>= 1.3.0)
|
|
139
|
+
jekyll-sass-converter (1.5.2)
|
|
140
|
+
sass (~> 3.4)
|
|
141
|
+
jekyll-seo-tag (2.6.1)
|
|
142
|
+
jekyll (>= 3.3, < 5.0)
|
|
143
|
+
jekyll-sitemap (1.4.0)
|
|
144
|
+
jekyll (>= 3.7, < 5.0)
|
|
145
|
+
jekyll-swiss (1.0.0)
|
|
146
|
+
jekyll-theme-architect (0.1.1)
|
|
147
|
+
jekyll (~> 3.5)
|
|
148
|
+
jekyll-seo-tag (~> 2.0)
|
|
149
|
+
jekyll-theme-cayman (0.1.1)
|
|
150
|
+
jekyll (~> 3.5)
|
|
151
|
+
jekyll-seo-tag (~> 2.0)
|
|
152
|
+
jekyll-theme-dinky (0.1.1)
|
|
153
|
+
jekyll (~> 3.5)
|
|
154
|
+
jekyll-seo-tag (~> 2.0)
|
|
155
|
+
jekyll-theme-hacker (0.1.1)
|
|
156
|
+
jekyll (~> 3.5)
|
|
157
|
+
jekyll-seo-tag (~> 2.0)
|
|
158
|
+
jekyll-theme-leap-day (0.1.1)
|
|
159
|
+
jekyll (~> 3.5)
|
|
160
|
+
jekyll-seo-tag (~> 2.0)
|
|
161
|
+
jekyll-theme-merlot (0.1.1)
|
|
162
|
+
jekyll (~> 3.5)
|
|
163
|
+
jekyll-seo-tag (~> 2.0)
|
|
164
|
+
jekyll-theme-midnight (0.1.1)
|
|
165
|
+
jekyll (~> 3.5)
|
|
166
|
+
jekyll-seo-tag (~> 2.0)
|
|
167
|
+
jekyll-theme-minimal (0.1.1)
|
|
168
|
+
jekyll (~> 3.5)
|
|
169
|
+
jekyll-seo-tag (~> 2.0)
|
|
170
|
+
jekyll-theme-modernist (0.1.1)
|
|
171
|
+
jekyll (~> 3.5)
|
|
172
|
+
jekyll-seo-tag (~> 2.0)
|
|
173
|
+
jekyll-theme-primer (0.5.4)
|
|
174
|
+
jekyll (> 3.5, < 5.0)
|
|
175
|
+
jekyll-github-metadata (~> 2.9)
|
|
176
|
+
jekyll-seo-tag (~> 2.0)
|
|
177
|
+
jekyll-theme-slate (0.1.1)
|
|
178
|
+
jekyll (~> 3.5)
|
|
179
|
+
jekyll-seo-tag (~> 2.0)
|
|
180
|
+
jekyll-theme-tactile (0.1.1)
|
|
181
|
+
jekyll (~> 3.5)
|
|
182
|
+
jekyll-seo-tag (~> 2.0)
|
|
183
|
+
jekyll-theme-time-machine (0.1.1)
|
|
184
|
+
jekyll (~> 3.5)
|
|
185
|
+
jekyll-seo-tag (~> 2.0)
|
|
186
|
+
jekyll-titles-from-headings (0.5.3)
|
|
187
|
+
jekyll (>= 3.3, < 5.0)
|
|
188
|
+
jekyll-watch (2.2.1)
|
|
189
|
+
listen (~> 3.0)
|
|
190
|
+
jemoji (0.11.1)
|
|
191
|
+
gemoji (~> 3.0)
|
|
192
|
+
html-pipeline (~> 2.2)
|
|
193
|
+
jekyll (>= 3.0, < 5.0)
|
|
194
|
+
kramdown (1.17.0)
|
|
195
|
+
liquid (4.0.3)
|
|
196
|
+
listen (3.2.1)
|
|
197
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
198
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
199
|
+
mercenary (0.3.6)
|
|
200
|
+
mini_portile2 (2.4.0)
|
|
201
|
+
minima (2.5.1)
|
|
202
|
+
jekyll (>= 3.5, < 5.0)
|
|
203
|
+
jekyll-feed (~> 0.9)
|
|
204
|
+
jekyll-seo-tag (~> 2.1)
|
|
205
|
+
minitest (5.14.0)
|
|
206
|
+
multipart-post (2.1.1)
|
|
207
|
+
nokogiri (1.10.9)
|
|
208
|
+
mini_portile2 (~> 2.4.0)
|
|
209
|
+
octokit (4.17.0)
|
|
210
|
+
faraday (>= 0.9)
|
|
211
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
|
212
|
+
pathutil (0.16.2)
|
|
213
|
+
forwardable-extended (~> 2.6)
|
|
214
|
+
public_suffix (3.1.1)
|
|
215
|
+
rb-fsevent (0.10.3)
|
|
216
|
+
rb-inotify (0.10.1)
|
|
217
|
+
ffi (~> 1.0)
|
|
218
|
+
rouge (3.13.0)
|
|
219
|
+
ruby-enum (0.7.2)
|
|
220
|
+
i18n
|
|
221
|
+
rubyzip (2.3.0)
|
|
222
|
+
safe_yaml (1.0.5)
|
|
223
|
+
sass (3.7.4)
|
|
224
|
+
sass-listen (~> 4.0.0)
|
|
225
|
+
sass-listen (4.0.0)
|
|
226
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
227
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
228
|
+
sawyer (0.8.2)
|
|
229
|
+
addressable (>= 2.3.5)
|
|
230
|
+
faraday (> 0.8, < 2.0)
|
|
231
|
+
terminal-table (1.8.0)
|
|
232
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
233
|
+
thread_safe (0.3.6)
|
|
234
|
+
typhoeus (1.3.1)
|
|
235
|
+
ethon (>= 0.9.0)
|
|
236
|
+
tzinfo (1.2.6)
|
|
237
|
+
thread_safe (~> 0.1)
|
|
238
|
+
tzinfo-data (1.2019.3)
|
|
239
|
+
tzinfo (>= 1.0.0)
|
|
240
|
+
unicode-display_width (1.7.0)
|
|
241
|
+
wdm (0.1.1)
|
|
242
|
+
zeitwerk (2.3.0)
|
|
243
|
+
|
|
244
|
+
PLATFORMS
|
|
245
|
+
ruby
|
|
246
|
+
|
|
247
|
+
DEPENDENCIES
|
|
248
|
+
github-pages (~> 204)
|
|
249
|
+
jekyll-feed (~> 0.6)
|
|
250
|
+
minima (~> 2.0)
|
|
251
|
+
tzinfo (~> 1.2)
|
|
252
|
+
tzinfo-data
|
|
253
|
+
wdm (~> 0.1.0)
|
|
254
|
+
|
|
255
|
+
BUNDLED WITH
|
|
256
|
+
2.1.4
|
data/docs/_config.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
title: rails_table_for docs
|
|
2
|
+
email: roos.austin@gmail.com
|
|
3
|
+
baseurl: "/rails_table_for" # the subpath of your site, e.g. /blog
|
|
4
|
+
url: "https://acroos.site" # the base hostname & protocol for your site, e.g. http://example.com
|
|
5
|
+
github_username: acroos
|
|
6
|
+
|
|
7
|
+
# Build settings
|
|
8
|
+
markdown: kramdown
|
|
9
|
+
theme: jekyll-theme-tactile
|
|
10
|
+
|
|
11
|
+
# Exclude from processing.
|
|
12
|
+
# The following items will not be processed, by default. Create a custom list
|
|
13
|
+
# to override the default setting.
|
|
14
|
+
# exclude:
|
|
15
|
+
# - Gemfile
|
|
16
|
+
# - Gemfile.lock
|
|
17
|
+
# - node_modules
|
|
18
|
+
# - vendor/bundle/
|
|
19
|
+
# - vendor/cache/
|
|
20
|
+
# - vendor/gems/
|
|
21
|
+
# - vendor/ruby/
|
data/docs/index.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title: rails_table_for
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'rails_table_for'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
$ bundle
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
# Simple Table
|
|
22
|
+
|
|
23
|
+
For the simplest table, just pass an ActiveRecord collection and an array of columns
|
|
24
|
+
```
|
|
25
|
+
<%= table_for @records, columns: [:name] %>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The columns must correspond to methods/properties on the record class. The column header
|
|
29
|
+
will be the method/property name "humanized".
|
|
30
|
+
|
|
31
|
+
Example output:
|
|
32
|
+
```html
|
|
33
|
+
<table>
|
|
34
|
+
<thead>
|
|
35
|
+
<tr>
|
|
36
|
+
<th>Name</th>
|
|
37
|
+
</tr>
|
|
38
|
+
</thead>
|
|
39
|
+
<tbody>
|
|
40
|
+
<tr>
|
|
41
|
+
<td>Austin</td>
|
|
42
|
+
</tr>
|
|
43
|
+
</tbody>
|
|
44
|
+
</table>
|
|
45
|
+
```
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_table_for
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Roos
|
|
@@ -134,6 +134,8 @@ executables: []
|
|
|
134
134
|
extensions: []
|
|
135
135
|
extra_rdoc_files: []
|
|
136
136
|
files:
|
|
137
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
138
|
+
- ".github/ISSUE_TEMPLATE/new-user-story.md"
|
|
137
139
|
- ".github/workflows/ruby.yml"
|
|
138
140
|
- ".gitignore"
|
|
139
141
|
- Gemfile
|
|
@@ -142,6 +144,12 @@ files:
|
|
|
142
144
|
- Rakefile
|
|
143
145
|
- bin/console
|
|
144
146
|
- bin/setup
|
|
147
|
+
- docs/.gitignore
|
|
148
|
+
- docs/404.html
|
|
149
|
+
- docs/Gemfile
|
|
150
|
+
- docs/Gemfile.lock
|
|
151
|
+
- docs/_config.yml
|
|
152
|
+
- docs/index.md
|
|
145
153
|
- lib/rails_table_for.rb
|
|
146
154
|
- lib/rails_table_for/block_column.rb
|
|
147
155
|
- lib/rails_table_for/column.rb
|