axlsx_rails 0.1.2 → 0.1.3

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.
@@ -18,6 +18,19 @@ class HomeController < ApplicationController
18
18
  render :xlsx => "index", :filename => "filename_test.xlsx"
19
19
  end
20
20
 
21
+ def render_elsewhere
22
+ render :xlsx => "/users/index"
23
+ end
24
+
21
25
  def withpartial
22
26
  end
27
+
28
+ def useheader
29
+ respond_to do |format|
30
+ format.xlsx {
31
+ render xlsx: "useheader", disposition: "attachment", filename: "filename_test.xlsx"
32
+ # response.headers['Content-Disposition'] = "attachment; filename=\"filename_test.xlsx\""
33
+ }
34
+ end
35
+ end
23
36
  end
@@ -0,0 +1,19 @@
1
+ class LikesController < ApplicationController
2
+ # GET /likes
3
+ # GET /likes.json
4
+ def index
5
+ @user = User.find(params[:user_id])
6
+ @likes = @user.likes
7
+
8
+ respond_to do |format|
9
+ format.html # index.html.erb
10
+ format.xlsx
11
+ end
12
+ end
13
+
14
+ def render_elsewhere
15
+ @user = User.find(params[:user_id])
16
+ @likes = @user.likes
17
+ render :xlsx => "/users/index"
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ class Like < ActiveRecord::Base
2
+ attr_accessible :name, :user_id
3
+
4
+ belongs_to :user
5
+ end
@@ -2,4 +2,6 @@ require 'acts_as_xlsx'
2
2
  class User < ActiveRecord::Base
3
3
  acts_as_xlsx columns: [:id, :name, :last_name, :address, :email]
4
4
  attr_accessible :address, :email, :last_name, :name
5
+
6
+ has_many :likes
5
7
  end
@@ -1,2 +1,4 @@
1
1
  <p>Hey, you can download the xlsx for this page by clicking the link below:</p>
2
- <p><%= link_to "XLSX", home_path("xlsx") %></p>
2
+ <p><%= link_to "XLSX", home_path("xlsx") %></p>
3
+ <p><%= link_to "Another", '/another.xlsx' %></p>
4
+ <p><%= link_to "User header", '/useheader.xlsx' %></p>
@@ -3,6 +3,6 @@ style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :cen
3
3
  wb.add_worksheet(name: "Foobar") do |sheet|
4
4
  sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...']
5
5
  sheet.add_row ['Untie!']
6
- sheet.merge_cells("B1:B6")
7
- sheet["B1"].style = style_shout
6
+ sheet.merge_cells("A2:E2")
7
+ sheet["A2"].style = style_shout
8
8
  end
@@ -0,0 +1,8 @@
1
+ wb = xlsx_package.workbook
2
+ style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center }
3
+ wb.add_worksheet(name: "Foobar") do |sheet|
4
+ sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...']
5
+ sheet.add_row ['Untie!']
6
+ sheet.merge_cells("A2:E2")
7
+ sheet["A2"].style = style_shout
8
+ end
@@ -4,6 +4,6 @@ style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :cen
4
4
  wb.add_worksheet(name: "Foobar") do |sheet|
5
5
  sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...']
6
6
  sheet.add_row ['Untie!']
7
- sheet.merge_cells("B1:B6")
8
- sheet["B1"].style = style_shout
7
+ sheet.merge_cells("A2:E2")
8
+ sheet["A2"].style = style_shout
9
9
  end
@@ -2,8 +2,6 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <%= javascript_include_tag "application" %>
7
5
  <%= csrf_meta_tags %>
8
6
  </head>
9
7
  <body>
@@ -0,0 +1,17 @@
1
+ <h1>Listing likes for <%= @user.name %></h1>
2
+
3
+ <table>
4
+ <tr>
5
+ <th>Name</th>
6
+ </tr>
7
+
8
+ <% @likes.each do |like| %>
9
+ <tr>
10
+ <td><%= like.name %></td>
11
+ </tr>
12
+ <% end %>
13
+ </table>
14
+
15
+ <br />
16
+
17
+ <%= link_to 'New Like', new_like_path %>
@@ -0,0 +1,7 @@
1
+ wb = xlsx_package.workbook
2
+ wb.add_worksheet(name: "Foobar") do |sheet|
3
+ sheet.add_row [@user.name]
4
+ @likes.each do |like|
5
+ sheet.add_row [like.name]
6
+ end
7
+ end
@@ -6,9 +6,6 @@
6
6
  <th>Last name</th>
7
7
  <th>Address</th>
8
8
  <th>Email</th>
9
- <th></th>
10
- <th></th>
11
- <th></th>
12
9
  </tr>
13
10
 
14
11
  <% @users.each do |user| %>
@@ -17,9 +14,6 @@
17
14
  <td><%= user.last_name %></td>
18
15
  <td><%= user.address %></td>
19
16
  <td><%= user.email %></td>
20
- <td><%= link_to 'Show', user %></td>
21
- <td><%= link_to 'Edit', edit_user_path(user) %></td>
22
- <td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
23
17
  </tr>
24
18
  <% end %>
25
19
  </table>
@@ -1,7 +1,13 @@
1
1
  Dummy::Application.routes.draw do
2
- resources :users
2
+ resources :users do
3
+ resources :likes
4
+ end
5
+ match "/users/:user_id/render_elsewhere(.:format)", :to => "likes#render_elsewhere"
3
6
  match "/home(.:format)", :to => "home#index", :as => :home
4
7
  match "/another(.:format)", :to => "home#another", :as => :another
8
+ match "/useheader(.:format)", :to => "home#useheader", :as => :useheader
5
9
  match "/withpartial(.:format)", :to => "home#withpartial", :as => :withpartial
10
+ match "/home/render_elsewhere(.:format)", :to => "home#render_elsewhere"
11
+ match "/render_elsewhere(.:format)", :to => "home#render_elsewhere"
6
12
  root to: "home#index"
7
13
  end
@@ -0,0 +1,10 @@
1
+ class CreateLikes < ActiveRecord::Migration
2
+ def change
3
+ create_table :likes do |t|
4
+ t.string :name
5
+ t.integer :user_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -11,7 +11,14 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120717192452) do
14
+ ActiveRecord::Schema.define(:version => 20121206210955) do
15
+
16
+ create_table "likes", :force => true do |t|
17
+ t.string "name"
18
+ t.datetime "created_at", :null => false
19
+ t.datetime "updated_at", :null => false
20
+ t.integer "user_id"
21
+ end
15
22
 
16
23
  create_table "users", :force => true do |t|
17
24
  t.string "name"
Binary file
@@ -123,3 +123,500 @@ AbstractController::ActionNotFound (The action 'new' could not be found for User
123
123
 
124
124
 
125
125
  Rendered /Users/noel/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.5ms)
126
+
127
+
128
+ Started GET "/" for 127.0.0.1 at 2012-08-21 13:29:57 -0700
129
+ Connecting to database specified by database.yml
130
+ Processing by HomeController#index as HTML
131
+ Rendered home/index.html.erb within layouts/application (21.2ms)
132
+ Completed 200 OK in 142ms (Views: 141.4ms | ActiveRecord: 0.0ms)
133
+
134
+
135
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-21 13:29:58 -0700
136
+ Served asset /application.css - 200 OK (1ms)
137
+
138
+
139
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-21 13:29:58 -0700
140
+ Served asset /jquery_ujs.js - 200 OK (1ms)
141
+
142
+
143
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-21 13:29:58 -0700
144
+ Served asset /application.js - 200 OK (5ms)
145
+
146
+
147
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-21 13:29:58 -0700
148
+ Served asset /jquery.js - 200 OK (2ms)
149
+
150
+
151
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:30:03 -0700
152
+ Processing by HomeController#useheader as XLSX
153
+ Rendered home/useheader.xlsx.axlsx (24.3ms)
154
+ Completed 200 OK in 26ms (Views: 26.0ms | ActiveRecord: 0.0ms)
155
+
156
+
157
+ Started GET "/another.xlsx" for 127.0.0.1 at 2012-08-21 13:30:10 -0700
158
+ Processing by HomeController#another as XLSX
159
+ Rendered home/index.xlsx.axlsx (4.5ms)
160
+ Rendered text template (0.0ms)
161
+ Sent data filename_test.xlsx (18.8ms)
162
+ Completed 200 OK in 54ms (Views: 53.8ms | ActiveRecord: 0.0ms)
163
+
164
+
165
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:30:26 -0700
166
+ Processing by HomeController#useheader as XLSX
167
+ Rendered home/useheader.xlsx.axlsx (23.4ms)
168
+ Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.0ms)
169
+
170
+
171
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:31:21 -0700
172
+ Processing by HomeController#useheader as XLSX
173
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
174
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
175
+
176
+
177
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:32:03 -0700
178
+ Processing by HomeController#useheader as XLSX
179
+ Completed 500 Internal Server Error in 61ms
180
+
181
+ ActionView::MissingTemplate (Missing template home/userheader, application/userheader with {:locale=>[:en], :formats=>[:xlsx], :handlers=>[:erb, :builder, :axlsx]}. Searched in:
182
+ * "/Users/noel/workspace/axlsx_rails/spec/dummy/app/views"
183
+ ):
184
+ app/controllers/home_controller.rb:28:in `block (2 levels) in useheader'
185
+ app/controllers/home_controller.rb:25:in `useheader'
186
+
187
+
188
+ Rendered /Users/noel/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.8ms)
189
+
190
+
191
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:32:35 -0700
192
+ Processing by HomeController#useheader as XLSX
193
+ Completed 500 Internal Server Error in 1ms
194
+
195
+ ActionView::MissingTemplate (Missing template home/userheader, application/userheader with {:locale=>[:en], :formats=>[:xlsx], :handlers=>[:erb, :builder, :axlsx]}. Searched in:
196
+ * "/Users/noel/workspace/axlsx_rails/spec/dummy/app/views"
197
+ ):
198
+ app/controllers/home_controller.rb:28:in `block (2 levels) in useheader'
199
+ app/controllers/home_controller.rb:25:in `useheader'
200
+
201
+
202
+ Rendered /Users/noel/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
203
+
204
+
205
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:32:50 -0700
206
+ Processing by HomeController#useheader as XLSX
207
+ Completed 500 Internal Server Error in 2ms
208
+
209
+ ActionView::MissingTemplate (Missing template home/home/userheader, application/home/userheader with {:locale=>[:en], :formats=>[:xlsx], :handlers=>[:erb, :builder, :axlsx]}. Searched in:
210
+ * "/Users/noel/workspace/axlsx_rails/spec/dummy/app/views"
211
+ ):
212
+ app/controllers/home_controller.rb:28:in `block (2 levels) in useheader'
213
+ app/controllers/home_controller.rb:25:in `useheader'
214
+
215
+
216
+ Rendered /Users/noel/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
217
+
218
+
219
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:33:04 -0700
220
+ Processing by HomeController#useheader as XLSX
221
+ Rendered home/useheader.xlsx.axlsx (3.9ms)
222
+ Rendered text template (0.0ms)
223
+ Sent data filename_test.xlsx (0.4ms)
224
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
225
+
226
+
227
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:33:32 -0700
228
+ Processing by HomeController#useheader as XLSX
229
+ Rendered home/useheader.xlsx.axlsx (3.9ms)
230
+ Rendered text template (0.0ms)
231
+ Sent data efffilename_test.xlsx (0.4ms)
232
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
233
+
234
+
235
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:35:45 -0700
236
+ Processing by HomeController#useheader as XLSX
237
+ Rendered home/useheader.xlsx.axlsx (22.4ms)
238
+ Completed 200 OK in 24ms (Views: 24.0ms | ActiveRecord: 0.0ms)
239
+
240
+
241
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:35:54 -0700
242
+ Processing by HomeController#useheader as XLSX
243
+ Rendered home/useheader.xlsx.axlsx (4.4ms)
244
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
245
+
246
+
247
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:36:06 -0700
248
+ Processing by HomeController#useheader as XLSX
249
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
250
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
251
+
252
+
253
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:37:20 -0700
254
+ Processing by HomeController#useheader as XLSX
255
+ Rendered home/useheader.xlsx.axlsx (22.8ms)
256
+ Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.0ms)
257
+
258
+
259
+ Started GET "/" for 127.0.0.1 at 2012-08-21 13:38:09 -0700
260
+ Processing by HomeController#index as HTML
261
+ Rendered home/index.html.erb within layouts/application (0.4ms)
262
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
263
+
264
+
265
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-21 13:38:09 -0700
266
+ Served asset /application.css - 200 OK (0ms)
267
+
268
+
269
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:09 -0700
270
+ Served asset /jquery.js - 200 OK (0ms)
271
+
272
+
273
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:09 -0700
274
+ Served asset /jquery_ujs.js - 200 OK (0ms)
275
+
276
+
277
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:09 -0700
278
+ Served asset /application.js - 200 OK (0ms)
279
+
280
+
281
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:38:12 -0700
282
+ Processing by HomeController#useheader as XLSX
283
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
284
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
285
+
286
+
287
+ Started GET "/" for 127.0.0.1 at 2012-08-21 13:38:20 -0700
288
+ Processing by HomeController#index as HTML
289
+ Rendered home/index.html.erb within layouts/application (0.4ms)
290
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
291
+
292
+
293
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-21 13:38:20 -0700
294
+ Served asset /application.css - 200 OK (0ms)
295
+
296
+
297
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:20 -0700
298
+ Served asset /jquery_ujs.js - 200 OK (0ms)
299
+
300
+
301
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:20 -0700
302
+ Served asset /jquery.js - 200 OK (0ms)
303
+
304
+
305
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-21 13:38:20 -0700
306
+ Served asset /application.js - 200 OK (0ms)
307
+
308
+
309
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:38:22 -0700
310
+ Processing by HomeController#useheader as XLSX
311
+ Rendered home/useheader.xlsx.axlsx (22.7ms)
312
+ Completed 200 OK in 24ms (Views: 24.3ms | ActiveRecord: 0.0ms)
313
+
314
+
315
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:38:36 -0700
316
+ Processing by HomeController#useheader as XLSX
317
+ Rendered home/useheader.xlsx.axlsx (4.9ms)
318
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
319
+
320
+
321
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:38:55 -0700
322
+ Processing by HomeController#useheader as XLSX
323
+ Rendered home/useheader.xlsx.axlsx (23.2ms)
324
+ Completed 200 OK in 25ms (Views: 25.0ms | ActiveRecord: 0.0ms)
325
+
326
+
327
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:38:58 -0700
328
+ Processing by HomeController#useheader as XLSX
329
+ Rendered home/useheader.xlsx.axlsx (4.5ms)
330
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
331
+
332
+
333
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:39:40 -0700
334
+ Processing by HomeController#useheader as XLSX
335
+ Rendered home/useheader.xlsx.axlsx (22.8ms)
336
+ Rendered text template (0.0ms)
337
+ Sent data filename_test.xlsx (0.5ms)
338
+ Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.0ms)
339
+
340
+
341
+ Started GET "/" for 192.168.10.83 at 2012-08-21 13:41:36 -0700
342
+ Processing by HomeController#index as HTML
343
+ Rendered home/index.html.erb within layouts/application (0.4ms)
344
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
345
+
346
+
347
+ Started GET "/assets/application.css?body=1" for 192.168.10.83 at 2012-08-21 13:41:37 -0700
348
+ Served asset /application.css - 200 OK (0ms)
349
+
350
+
351
+ Started GET "/assets/jquery.js?body=1" for 192.168.10.83 at 2012-08-21 13:41:37 -0700
352
+ Served asset /jquery.js - 200 OK (0ms)
353
+
354
+
355
+ Started GET "/assets/jquery_ujs.js?body=1" for 192.168.10.83 at 2012-08-21 13:41:37 -0700
356
+ Served asset /jquery_ujs.js - 200 OK (0ms)
357
+
358
+
359
+ Started GET "/assets/application.js?body=1" for 192.168.10.83 at 2012-08-21 13:41:37 -0700
360
+ Served asset /application.js - 200 OK (0ms)
361
+
362
+
363
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:41:39 -0700
364
+ Processing by HomeController#useheader as XLSX
365
+ Rendered home/useheader.xlsx.axlsx (4.3ms)
366
+ Rendered text template (0.0ms)
367
+ Sent data filename_test.xlsx (0.5ms)
368
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
369
+
370
+
371
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:41:49 -0700
372
+ Processing by HomeController#useheader as XLSX
373
+ Rendered home/useheader.xlsx.axlsx (24.6ms)
374
+ Rendered text template (0.0ms)
375
+ Sent data filenamedd_test.xlsx (0.5ms)
376
+ Completed 200 OK in 27ms (Views: 27.0ms | ActiveRecord: 0.0ms)
377
+
378
+
379
+ Started GET "/" for 192.168.10.83 at 2012-08-21 13:42:18 -0700
380
+ Processing by HomeController#index as HTML
381
+ Rendered home/index.html.erb within layouts/application (0.6ms)
382
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
383
+
384
+
385
+ Started GET "/assets/application.css?body=1" for 192.168.10.83 at 2012-08-21 13:42:19 -0700
386
+ Served asset /application.css - 200 OK (0ms)
387
+
388
+
389
+ Started GET "/assets/jquery.js?body=1" for 192.168.10.83 at 2012-08-21 13:42:19 -0700
390
+ Served asset /jquery.js - 200 OK (0ms)
391
+
392
+
393
+ Started GET "/assets/jquery_ujs.js?body=1" for 192.168.10.83 at 2012-08-21 13:42:19 -0700
394
+ Served asset /jquery_ujs.js - 200 OK (0ms)
395
+
396
+
397
+ Started GET "/assets/application.js?body=1" for 192.168.10.83 at 2012-08-21 13:42:19 -0700
398
+ Served asset /application.js - 200 OK (0ms)
399
+
400
+
401
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:42:22 -0700
402
+ Processing by HomeController#useheader as XLSX
403
+ Rendered home/useheader.xlsx.axlsx (4.1ms)
404
+ Rendered text template (0.0ms)
405
+ Sent data filename_test.xlsx (0.4ms)
406
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
407
+
408
+
409
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:42:42 -0700
410
+ Processing by HomeController#useheader as XLSX
411
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
412
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
413
+
414
+
415
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:44:15 -0700
416
+ Processing by HomeController#useheader as XLSX
417
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
418
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
419
+
420
+
421
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:44:51 -0700
422
+ Processing by HomeController#useheader as XLSX
423
+ Rendered home/useheader.xlsx.axlsx (24.3ms)
424
+ Completed 200 OK in 26ms (Views: 25.8ms | ActiveRecord: 0.0ms)
425
+
426
+
427
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:56:44 -0700
428
+ Connecting to database specified by database.yml
429
+ Processing by HomeController#useheader as XLSX
430
+ Rendered home/useheader.xlsx.axlsx (23.0ms)
431
+ Completed 200 OK in 31ms (Views: 31.0ms | ActiveRecord: 0.0ms)
432
+
433
+
434
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:56:52 -0700
435
+ Processing by HomeController#useheader as XLSX
436
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
437
+ Rendered text template (0.0ms)
438
+ Sent data filename_test.xlsx (34.2ms)
439
+ Completed 200 OK in 41ms (Views: 40.4ms | ActiveRecord: 0.0ms)
440
+
441
+
442
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 13:57:39 -0700
443
+ Processing by HomeController#useheader as XLSX
444
+ Rendered home/useheader.xlsx.axlsx (25.8ms)
445
+ Completed 200 OK in 28ms (Views: 27.7ms | ActiveRecord: 0.0ms)
446
+
447
+
448
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 13:59:20 -0700
449
+ Processing by HomeController#useheader as XLSX
450
+ Rendered home/useheader.xlsx.axlsx (4.0ms)
451
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
452
+
453
+
454
+ Started GET "/useheader.xlsx" for 192.168.10.83 at 2012-08-21 14:05:31 -0700
455
+ Connecting to database specified by database.yml
456
+ Processing by HomeController#useheader as XLSX
457
+ Rendered home/useheader.xlsx.axlsx (24.4ms)
458
+ Rendered text template (0.0ms)
459
+ Sent data filename_test.xlsx (1.9ms)
460
+ Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.0ms)
461
+
462
+
463
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:06:05 -0700
464
+ Processing by HomeController#useheader as XLSX
465
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
466
+ Rendered text template (0.0ms)
467
+ Sent data filename_test.xlsx (0.4ms)
468
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
469
+
470
+
471
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:06:13 -0700
472
+ Processing by HomeController#useheader as XLSX
473
+ Rendered home/useheader.xlsx.axlsx (25.3ms)
474
+ Rendered text template (0.0ms)
475
+ Sent data filename_test.xlsx (0.5ms)
476
+ Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms)
477
+
478
+
479
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:06:29 -0700
480
+ Processing by HomeController#useheader as XLSX
481
+ Rendered home/useheader.xlsx.axlsx (4.6ms)
482
+ Rendered text template (0.0ms)
483
+ Sent data filename_test.xlsx (0.7ms)
484
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
485
+
486
+
487
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:06:59 -0700
488
+ Processing by HomeController#useheader as XLSX
489
+ Rendered home/useheader.xlsx.axlsx (22.2ms)
490
+ Rendered text template (0.0ms)
491
+ Sent data filename_test.xlsx (0.4ms)
492
+ Completed 200 OK in 25ms (Views: 24.3ms | ActiveRecord: 0.0ms)
493
+
494
+
495
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:07:33 -0700
496
+ Processing by HomeController#useheader as XLSX
497
+ Rendered home/useheader.xlsx.axlsx (4.2ms)
498
+ Rendered text template (0.0ms)
499
+ Sent data filename_test.xlsx (0.4ms)
500
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
501
+
502
+
503
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:07:56 -0700
504
+ Connecting to database specified by database.yml
505
+ Processing by HomeController#useheader as XLSX
506
+ Rendered home/useheader.xlsx.axlsx (23.0ms)
507
+ Rendered text template (0.0ms)
508
+ Sent data filename_test.xlsx (1.9ms)
509
+ Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.0ms)
510
+
511
+
512
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:07:59 -0700
513
+ Processing by HomeController#useheader as XLSX
514
+ Rendered home/useheader.xlsx.axlsx (4.9ms)
515
+ Rendered text template (0.0ms)
516
+ Sent data filename_test.xlsx (0.5ms)
517
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
518
+
519
+
520
+ Started GET "/useheader.xlsx" for 127.0.0.1 at 2012-08-21 14:13:40 -0700
521
+ Processing by HomeController#useheader as XLSX
522
+ Rendered home/useheader.xlsx.axlsx (24.3ms)
523
+ Rendered text template (0.0ms)
524
+ Sent data filename_test.xlsx (0.5ms)
525
+ Completed 200 OK in 28ms (Views: 27.1ms | ActiveRecord: 0.0ms)
526
+
527
+
528
+ Started GET "/" for 127.0.0.1 at 2012-08-27 09:46:23 -0700
529
+ Connecting to database specified by database.yml
530
+ Processing by HomeController#index as HTML
531
+ Rendered home/index.html.erb within layouts/application (3.1ms)
532
+ Completed 200 OK in 98ms (Views: 97.9ms | ActiveRecord: 0.0ms)
533
+
534
+
535
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-27 09:46:24 -0700
536
+ Served asset /application.css - 304 Not Modified (3ms)
537
+
538
+
539
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-27 09:46:24 -0700
540
+ Served asset /jquery.js - 304 Not Modified (3ms)
541
+
542
+
543
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-27 09:46:24 -0700
544
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
545
+
546
+
547
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-27 09:46:24 -0700
548
+ Served asset /application.js - 304 Not Modified (5ms)
549
+
550
+
551
+ Started GET "/home.xlsx" for 127.0.0.1 at 2012-08-27 09:46:28 -0700
552
+ Processing by HomeController#index as XLSX
553
+ Rendered home/index.xlsx.axlsx (24.7ms)
554
+ Completed 200 OK in 45ms (Views: 45.1ms | ActiveRecord: 0.0ms)
555
+
556
+
557
+ Started GET "/" for 127.0.0.1 at 2012-08-27 10:55:48 -0700
558
+ Processing by HomeController#index as HTML
559
+ Rendered home/index.html.erb within layouts/application (0.7ms)
560
+ Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)
561
+
562
+
563
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-27 10:55:48 -0700
564
+ Served asset /application.css - 304 Not Modified (0ms)
565
+
566
+
567
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-27 10:55:48 -0700
568
+ Served asset /jquery.js - 304 Not Modified (0ms)
569
+
570
+
571
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-27 10:55:48 -0700
572
+ Served asset /application.js - 304 Not Modified (0ms)
573
+
574
+
575
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-27 10:55:48 -0700
576
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
577
+
578
+
579
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-08-27 11:02:26 -0700
580
+ Served asset /application.css - 304 Not Modified (0ms)
581
+
582
+
583
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-08-27 11:02:56 -0700
584
+ Served asset /jquery.js - 304 Not Modified (0ms)
585
+
586
+
587
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-08-27 11:03:06 -0700
588
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
589
+
590
+
591
+ Started GET "/" for 127.0.0.1 at 2012-08-27 11:03:18 -0700
592
+ Processing by HomeController#index as HTML
593
+ Rendered home/index.html.erb within layouts/application (0.4ms)
594
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
595
+ Connecting to database specified by database.yml
596
+ Connecting to database specified by database.yml
597
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
598
+ Migrating to CreateUsers (20120717192452)
599
+ Migrating to CreateLikes (20121206210955)
600
+  (0.1ms) select sqlite_version(*)
601
+  (0.1ms) begin transaction
602
+  (0.5ms) CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
603
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121206210955')
604
+  (2.7ms) commit transaction
605
+  (0.3ms) select sqlite_version(*)
606
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
607
+  (0.0ms) PRAGMA index_list("likes")
608
+  (0.0ms) PRAGMA index_list("users")
609
+ Connecting to database specified by database.yml
610
+  (1.4ms) select sqlite_version(*)
611
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
612
+  (0.0ms) PRAGMA index_list("likes")
613
+  (0.0ms) PRAGMA index_list("users")
614
+  (0.2ms) select sqlite_version(*)
615
+  (2.0ms) CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer)
616
+  (2.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "address" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
617
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
618
+  (0.0ms) PRAGMA index_list("schema_migrations")
619
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
620
+  (0.1ms) SELECT version FROM "schema_migrations"
621
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121206210955')
622
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120717192452')