cable 0.9.5 → 0.9.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
@@ -3,7 +3,7 @@ class Admin::<%= class_name.pluralize %>Controller < AdminController
3
3
  respond_to :html, :xml, :json
4
4
 
5
5
  def index
6
- respond_with(:admin, @<%= plural_table_name %> = <%= orm_class.all(class_name) %>)
6
+ respond_with(:admin, @<%= plural_table_name %> = <%= class_name %>.page( params[:page]) )
7
7
  end
8
8
 
9
9
  # GET <%= route_url %>/1
@@ -1,13 +1,13 @@
1
+ <%%= paginate @<%= plural_table_name %>, :window => 1 %>
1
2
  <table>
2
3
  <thead>
3
4
  <tr>
4
- <th>Page</th>
5
+ <th><%= singular_table_name.capitalize %></th>
5
6
  <th>Template</th>
6
7
  <th class="actions">Actions</th>
7
8
  </tr>
8
9
  </thead>
9
10
  <tbody>
10
-
11
11
  <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
12
12
  <tr>
13
13
  <td><strong><%%= link_to <%= singular_table_name %>.title, [:admin, <%= singular_table_name %>], :target => "_blank" %></strong></td>
@@ -54,4 +54,5 @@
54
54
  <%% end %>
55
55
  <%% end %>
56
56
  </tbody>
57
- </table>
57
+ </table>
58
+ <%%= paginate @<%= plural_table_name %>, :window => 1 %>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.5
5
+ version: 0.9.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Spencer Markowski
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-03-22 00:00:00 -04:00
15
+ date: 2011-03-25 00:00:00 -04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -92,6 +92,17 @@ dependencies:
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: *id007
95
+ - !ruby/object:Gem::Dependency
96
+ name: kaminari
97
+ requirement: &id008 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: "0"
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: *id008
95
106
  description:
96
107
  email:
97
108
  executables: []