trust 0.5.1 → 0.6.0
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 +8 -1
- data/lib/trust.rb +13 -2
- data/lib/trust/version.rb +1 -1
- data/test/dummy/app/controllers/clients_controller.rb +0 -13
- data/test/dummy/app/controllers/mongo_accounts_controller.rb +100 -0
- data/test/dummy/app/controllers/mongo_clients_controller.rb +94 -0
- data/test/dummy/app/models/mongo_account.rb +42 -0
- data/test/dummy/app/models/mongo_client.rb +41 -0
- data/test/dummy/app/models/permissions.rb +17 -0
- data/test/dummy/app/views/mongo_accounts/_form.html.erb +46 -0
- data/test/dummy/app/views/mongo_accounts/edit.html.erb +31 -0
- data/test/dummy/app/views/mongo_accounts/index.html.erb +48 -0
- data/test/dummy/app/views/mongo_accounts/new.html.erb +30 -0
- data/test/dummy/app/views/mongo_accounts/show.html.erb +35 -0
- data/test/dummy/app/views/mongo_clients/_form.html.erb +46 -0
- data/test/dummy/app/views/mongo_clients/edit.html.erb +31 -0
- data/test/dummy/app/views/mongo_clients/index.html.erb +48 -0
- data/test/dummy/app/views/mongo_clients/new.html.erb +30 -0
- data/test/dummy/app/views/mongo_clients/show.html.erb +35 -0
- data/test/dummy/config/mongoid.yml +20 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/log/test.log +799 -0
- data/test/dummy/test/functional/mongo_accounts_controller_test.rb +123 -0
- data/test/dummy/test/functional/mongo_clients_controller_test.rb +74 -0
- data/test/dummy/test/unit/permissions_test.rb +112 -0
- metadata +38 -4
@@ -0,0 +1,31 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>Editing account</h1>
|
27
|
+
|
28
|
+
<%= render 'form' %>
|
29
|
+
|
30
|
+
<%= link_to 'Show', mongo_client_mongo_account_path(@mongo_account) %> |
|
31
|
+
<%= link_to 'Back', mongo_client_mongo_accounts_path(@mongo_client) %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>Listing accounts</h1>
|
27
|
+
|
28
|
+
<table>
|
29
|
+
<tr>
|
30
|
+
<th>Name</th>
|
31
|
+
<th></th>
|
32
|
+
<th></th>
|
33
|
+
<th></th>
|
34
|
+
</tr>
|
35
|
+
|
36
|
+
<% @mongo_accounts.each do |account| %>
|
37
|
+
<tr>
|
38
|
+
<td><%= account.name %></td>
|
39
|
+
<td><%= link_to 'Show', mongo_client_mongo_account_path(account.mongo_client,account) %></td>
|
40
|
+
<td><%= link_to 'Edit', edit_mongo_client_mongo_account_path(account.mongo_client,account) %></td>
|
41
|
+
<td><%= link_to 'Destroy', mongo_client_mongo_account_path(account.mongo_client,account), confirm: 'Are you sure?', method: :delete %></td>
|
42
|
+
</tr>
|
43
|
+
<% end %>
|
44
|
+
</table>
|
45
|
+
|
46
|
+
<br />
|
47
|
+
|
48
|
+
<%= link_to 'New Account', new_mongo_client_mongo_account_path(@mongo_client) %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>New account</h1>
|
27
|
+
|
28
|
+
<%= render 'form' %>
|
29
|
+
|
30
|
+
<%= link_to 'Back', mongo_client_mongo_accounts_path(@mongo_client) %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<p id="notice"><%= notice %></p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<b>Name:</b>
|
30
|
+
<%= @mongo_account.name %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
|
34
|
+
<%= link_to 'Edit', edit_mongo_client_mongo_account_path(@mongo_account) %> |
|
35
|
+
<%= link_to 'Back', mongo_client_mongo_accounts_path(@mongo_client) %>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<%= form_for(@mongo_client) do |f| %>
|
27
|
+
<% if @mongo_client.errors.any? %>
|
28
|
+
<div id="error_explanation">
|
29
|
+
<h2><%= pluralize(@mongo_client.errors.count, "error") %> prohibited this client from being saved:</h2>
|
30
|
+
|
31
|
+
<ul>
|
32
|
+
<% @mongo_client.errors.full_messages.each do |msg| %>
|
33
|
+
<li><%= msg %></li>
|
34
|
+
<% end %>
|
35
|
+
</ul>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<div class="field">
|
40
|
+
<%= f.label :name %><br />
|
41
|
+
<%= f.text_field :name %>
|
42
|
+
</div>
|
43
|
+
<div class="actions">
|
44
|
+
<%= f.submit %>
|
45
|
+
</div>
|
46
|
+
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>Editing client</h1>
|
27
|
+
|
28
|
+
<%= render 'form' %>
|
29
|
+
|
30
|
+
<%= link_to 'Show', @mongo_client %> |
|
31
|
+
<%= link_to 'Back', mongo_clients_path %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>Listing clients</h1>
|
27
|
+
|
28
|
+
<table>
|
29
|
+
<tr>
|
30
|
+
<th>Name</th>
|
31
|
+
<th></th>
|
32
|
+
<th></th>
|
33
|
+
<th></th>
|
34
|
+
</tr>
|
35
|
+
|
36
|
+
<% @mongo_clients.each do |client| %>
|
37
|
+
<tr>
|
38
|
+
<td><%= client.name %></td>
|
39
|
+
<td><%= link_to 'Show', client %></td>
|
40
|
+
<td><%= link_to 'Edit', edit_mongo_client_path(client) %></td>
|
41
|
+
<td><%= link_to 'Destroy', client, confirm: 'Are you sure?', method: :delete %></td>
|
42
|
+
</tr>
|
43
|
+
<% end %>
|
44
|
+
</table>
|
45
|
+
|
46
|
+
<br />
|
47
|
+
|
48
|
+
<%= link_to 'New Client', new_mongo_client_path %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<h1>New client</h1>
|
27
|
+
|
28
|
+
<%= render 'form' %>
|
29
|
+
|
30
|
+
<%= link_to 'Back', mongo_clients_path %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%
|
2
|
+
# Copyright (c) 2012 Bingo Entreprenøren AS
|
3
|
+
# Copyright (c) 2012 Teknobingo Scandinavia AS
|
4
|
+
# Copyright (c) 2012 Knut I. Stenmark
|
5
|
+
# Copyright (c) 2012 Patrick Hanevold
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
# a copy of this software and associated documentation files (the
|
9
|
+
# "Software"), to deal in the Software without restriction, including
|
10
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
# the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be
|
16
|
+
# included in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
%>
|
26
|
+
<p id="notice"><%= notice %></p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<b>Name:</b>
|
30
|
+
<%= @mongo_client.name %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
|
34
|
+
<%= link_to 'Edit', edit_mongo_client_path(@mongo_client) %> |
|
35
|
+
<%= link_to 'Back', mongo_clients_path %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
development:
|
2
|
+
host: localhost
|
3
|
+
database: dummy_development
|
4
|
+
|
5
|
+
test:
|
6
|
+
host: localhost
|
7
|
+
database: dummy_test
|
8
|
+
|
9
|
+
# set these environment variables on your prod server
|
10
|
+
production:
|
11
|
+
host: <%= ENV['MONGOID_HOST'] %>
|
12
|
+
port: <%= ENV['MONGOID_PORT'] %>
|
13
|
+
username: <%= ENV['MONGOID_USERNAME'] %>
|
14
|
+
password: <%= ENV['MONGOID_PASSWORD'] %>
|
15
|
+
database: <%= ENV['MONGOID_DATABASE'] %>
|
16
|
+
# slaves:
|
17
|
+
# - host: slave1.local
|
18
|
+
# port: 27018
|
19
|
+
# - host: slave2.local
|
20
|
+
# port: 27019
|
data/test/dummy/config/routes.rb
CHANGED
@@ -24,6 +24,7 @@
|
|
24
24
|
|
25
25
|
Dummy::Application.routes.draw do
|
26
26
|
resources :clients
|
27
|
+
resources :mongo_clients
|
27
28
|
|
28
29
|
resources :users
|
29
30
|
|
@@ -35,4 +36,8 @@ Dummy::Application.routes.draw do
|
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
39
|
+
resources :mongo_client do
|
40
|
+
resources :mongo_accounts
|
41
|
+
end
|
42
|
+
|
38
43
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -2034,3 +2034,802 @@ Processing by UsersController#update as HTML
|
|
2034
2034
|
Redirected to http://test.host/users/1
|
2035
2035
|
Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
|
2036
2036
|
[1m[35m (1.0ms)[0m rollback transaction
|
2037
|
+
accounts belongs_to [:client]
|
2038
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
2039
|
+
[1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2040
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2041
|
+
[1m[35mSQL (23.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2042
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2043
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2044
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2045
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2046
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2047
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2048
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2049
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "accounts"
|
2050
|
+
Processing by AccountsController#create as HTML
|
2051
|
+
Parameters: {"account"=>{"name"=>nil}, "client_id"=>"1"}
|
2052
|
+
[1m[36mClient Load (0.3ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2054
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2055
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2056
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1[0m
|
2057
|
+
Redirected to http://test.host/client/1/accounts/2
|
2058
|
+
Completed 302 Found in 113ms (ActiveRecord: 0.9ms)
|
2059
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "accounts"
|
2060
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
2061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2062
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2063
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2064
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2065
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2066
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2067
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2068
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2069
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2070
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2071
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2072
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts" [0m
|
2073
|
+
Processing by AccountsController#destroy as HTML
|
2074
|
+
Parameters: {"client_id"=>"1", "id"=>"1"}
|
2075
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2076
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2077
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2078
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = ?[0m [["id", 1]]
|
2079
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2080
|
+
Redirected to http://test.host/client/1/accounts
|
2081
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
2082
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts" [0m
|
2083
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2084
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2085
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2086
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2087
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2088
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2089
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2090
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2091
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2092
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2093
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2094
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2095
|
+
Processing by AccountsController#edit as HTML
|
2096
|
+
Parameters: {"client_id"=>"1", "id"=>"1"}
|
2097
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2098
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2099
|
+
Rendered accounts/_form.html.erb (28.8ms)
|
2100
|
+
Completed 200 OK in 99ms (Views: 94.9ms | ActiveRecord: 0.2ms)
|
2101
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2102
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2103
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2104
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2105
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2106
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2108
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2111
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2112
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2113
|
+
Processing by AccountsController#index as HTML
|
2114
|
+
Parameters: {"client_id"=>"1"}
|
2115
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2116
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1[0m
|
2117
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = 1 LIMIT 1
|
2118
|
+
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.4ms)
|
2119
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2121
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2122
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2123
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2124
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2125
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2126
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2127
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2129
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2131
|
+
Processing by AccountsController#new as HTML
|
2132
|
+
Parameters: {"client_id"=>"1"}
|
2133
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2134
|
+
Rendered accounts/_form.html.erb (2.8ms)
|
2135
|
+
Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.1ms)
|
2136
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2138
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2140
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2143
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2144
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2146
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2147
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2148
|
+
Processing by AccountsController#show as HTML
|
2149
|
+
Parameters: {"client_id"=>"1", "id"=>"1"}
|
2150
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2151
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2152
|
+
Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
2153
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2155
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2156
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2157
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2158
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2159
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2160
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2161
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2163
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2164
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2165
|
+
Processing by AccountsController#update as HTML
|
2166
|
+
Parameters: {"account"=>{"name"=>nil}, "client_id"=>"1", "id"=>"1"}
|
2167
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2168
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2169
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2170
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2171
|
+
Redirected to http://test.host/client/1/accounts/1
|
2172
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
|
2173
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2175
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2176
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2177
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2178
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2179
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2180
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2181
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2182
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2183
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2184
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2185
|
+
Processing by AccountsController#update as HTML
|
2186
|
+
Parameters: {"account"=>{"name"=>nil}, "client_id"=>"1", "id"=>"1"}
|
2187
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2188
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2189
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
2190
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2192
|
+
Redirected to http://test.host/client/1/accounts/1
|
2193
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
2194
|
+
[1m[36m (2.5ms)[0m [1mrollback transaction[0m
|
2195
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2196
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1[0m
|
2197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2198
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2199
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2200
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2201
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2202
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2203
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2204
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2205
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2206
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1[0m
|
2207
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2208
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "guest"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2209
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2210
|
+
Processing by AccountsController#update as HTML
|
2211
|
+
Parameters: {"account"=>{"name"=>nil}, "client_id"=>"1", "id"=>"1"}
|
2212
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2213
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1 [["id", "1"]]
|
2214
|
+
Completed 500 Internal Server Error in 3ms
|
2215
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2216
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2217
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1[0m
|
2218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2219
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2222
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2225
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2226
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2227
|
+
Processing by AccountsController#destroy as HTML
|
2228
|
+
Parameters: {"client_id"=>"1", "id"=>"1"}
|
2229
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2230
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1 [["id", "1"]]
|
2231
|
+
Completed 500 Internal Server Error in 3ms
|
2232
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2233
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2234
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1[0m
|
2235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2236
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2238
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2239
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2240
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2242
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2243
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2244
|
+
Processing by AccountsController#index as HTML
|
2245
|
+
Parameters: {"client_id"=>"1"}
|
2246
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2247
|
+
Completed 500 Internal Server Error in 3ms
|
2248
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2250
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2251
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2252
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2253
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2255
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2256
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2258
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2259
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2260
|
+
Processing by AccountsController#new as HTML
|
2261
|
+
Parameters: {"client_id"=>"1"}
|
2262
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2263
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
2264
|
+
Completed 500 Internal Server Error in 4ms
|
2265
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2267
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2269
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "accountant"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2271
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2272
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2273
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2275
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2277
|
+
Processing by AccountsController#show as HTML
|
2278
|
+
Parameters: {"client_id"=>"1", "id"=>"1"}
|
2279
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2280
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."client_id" = 1 AND "accounts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2281
|
+
Completed 500 Internal Server Error in 3ms
|
2282
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2284
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2285
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2287
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2289
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2290
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2291
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clients" [0m
|
2292
|
+
Processing by ClientsController#create as HTML
|
2293
|
+
Parameters: {"client"=>{"name"=>nil}}
|
2294
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2295
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2296
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2297
|
+
Redirected to http://test.host/clients/2
|
2298
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
2299
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clients" [0m
|
2300
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2303
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2305
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2307
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2309
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clients" [0m
|
2310
|
+
Processing by ClientsController#destroy as HTML
|
2311
|
+
Parameters: {"id"=>"1"}
|
2312
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2313
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2314
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2315
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "clients" WHERE "clients"."id" = ?[0m [["id", 1]]
|
2316
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2317
|
+
Redirected to http://test.host/clients
|
2318
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
2319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clients" [0m
|
2320
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2321
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2323
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2324
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2325
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2326
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2327
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2328
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2329
|
+
Processing by ClientsController#edit as HTML
|
2330
|
+
Parameters: {"id"=>"1"}
|
2331
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2332
|
+
[1m[35mClient Load (0.0ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2333
|
+
Rendered clients/_form.html.erb (4.2ms)
|
2334
|
+
Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.1ms)
|
2335
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2337
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2338
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2340
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2341
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2342
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2343
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2344
|
+
Processing by ClientsController#index as HTML
|
2345
|
+
[1m[35mClient Load (0.2ms)[0m SELECT "clients".* FROM "clients"
|
2346
|
+
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
2347
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2350
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2352
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2354
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2355
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2356
|
+
Processing by ClientsController#new as HTML
|
2357
|
+
Rendered clients/_form.html.erb (2.0ms)
|
2358
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
2359
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2360
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2361
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2362
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2363
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2364
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2366
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2367
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2368
|
+
Processing by ClientsController#show as HTML
|
2369
|
+
Parameters: {"id"=>"1"}
|
2370
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2371
|
+
[1m[35mClient Load (0.0ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2372
|
+
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.2ms)
|
2373
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2375
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2376
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clients" ("accountant_id", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["accountant_id", 1], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2377
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2378
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2379
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2380
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2381
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2382
|
+
Processing by ClientsController#update as HTML
|
2383
|
+
Parameters: {"client"=>{"name"=>nil}, "id"=>"1"}
|
2384
|
+
[1m[35mClient Load (0.1ms)[0m SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", "1"]]
|
2385
|
+
[1m[36mClient Load (0.1ms)[0m [1mSELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2388
|
+
Redirected to http://test.host/clients/1
|
2389
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
|
2390
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2392
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2394
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2395
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2396
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2398
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2399
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2400
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2401
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2402
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2403
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2404
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2406
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2407
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2408
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2409
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2410
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'department_manager' LIMIT 1
|
2411
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2412
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :department_manager], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2413
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2414
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2416
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2417
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2418
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2419
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2420
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2422
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1
|
2423
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2424
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :guest], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2425
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2426
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2427
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["client_id", nil], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2428
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2429
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1[0m
|
2430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2431
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2433
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2434
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2435
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1[0m
|
2436
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2437
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2438
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2439
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2440
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "accounts" ("client_id", "created_at", "created_by_id", "name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["client_id", nil], ["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["created_by_id", 1], ["name", nil], ["type", nil], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2441
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2442
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2444
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2446
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2447
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2448
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2450
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2451
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2452
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2453
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2454
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2455
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2456
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'department_manager' LIMIT 1
|
2457
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2458
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00], ["name", :department_manager], ["updated_at", Thu, 07 Jun 2012 14:22:21 UTC +00:00]]
|
2459
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2460
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2461
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2462
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1
|
2463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2464
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :guest], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2466
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2467
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2468
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2470
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2471
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2472
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
2473
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2474
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2475
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2476
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2477
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2478
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2479
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2480
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1
|
2481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2482
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :guest], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2483
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2484
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2486
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2487
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2488
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2489
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2490
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2492
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1
|
2493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2494
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :guest], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2496
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2497
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2498
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2499
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2500
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2501
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2502
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2504
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'accountant' LIMIT 1
|
2505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2506
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :accountant], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2507
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2508
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2509
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2510
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2511
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2512
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :system_admin], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2513
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2514
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2515
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2516
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2517
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2518
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'guest' LIMIT 1
|
2519
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2520
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :guest], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2521
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2522
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2523
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2524
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'blind_man' LIMIT 1
|
2525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2526
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", :blind_man], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2527
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2528
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2529
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2530
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2531
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2532
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2533
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2534
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2535
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2536
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2537
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2538
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2539
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2540
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2542
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2543
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2544
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2546
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2548
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2550
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2552
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2553
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2554
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2555
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2556
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2557
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2558
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2559
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2560
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2561
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2562
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2563
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2564
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2565
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2566
|
+
controller belongs_to [:heaven, {:as=>:earth}]
|
2567
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2568
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2569
|
+
controller belongs_to [:heaven, :hell]
|
2570
|
+
controller belongs_to [:earth]
|
2571
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2573
|
+
controller belongs_to [:heaven]
|
2574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2575
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2578
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2580
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2582
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2583
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2584
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2585
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2586
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2587
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2588
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2590
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2591
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2592
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2593
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2594
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2595
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2596
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2597
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2598
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2599
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2600
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2601
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2602
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2603
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2604
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2605
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2606
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2607
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2610
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2612
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2614
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2616
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2617
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2618
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2620
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2621
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2622
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2626
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2627
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2628
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2629
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2630
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2632
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2634
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2635
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2636
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2637
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2638
|
+
child belongs_to [:parent]
|
2639
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2640
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2641
|
+
child belongs_to [:parent]
|
2642
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2643
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2644
|
+
child belongs_to [:parent]
|
2645
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2646
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2647
|
+
child belongs_to [:parent]
|
2648
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2650
|
+
child belongs_to [:parent]
|
2651
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2652
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2653
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2654
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2655
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2657
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2658
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2659
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2660
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2661
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2662
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2663
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2665
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2666
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2667
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2669
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2670
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2671
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2673
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2674
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2675
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2676
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2678
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2679
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2681
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2683
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2685
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2686
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2687
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2688
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2689
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2690
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2691
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2692
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2693
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2694
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2695
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2696
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2697
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2698
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2699
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2700
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2701
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2702
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2703
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2704
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2705
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2706
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2707
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2708
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2709
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2711
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2712
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2713
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2714
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2715
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2716
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2717
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2719
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2721
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2722
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2723
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2725
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2726
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2727
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2729
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2730
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2731
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2732
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2733
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2734
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2736
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" [0m
|
2737
|
+
Processing by UsersController#create as HTML
|
2738
|
+
Parameters: {"user"=>{"name"=>nil}}
|
2739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2740
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2742
|
+
Redirected to http://test.host/users/3
|
2743
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.5ms)
|
2744
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" [0m
|
2745
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2746
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2747
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2748
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2749
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2750
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2752
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2753
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2754
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" [0m
|
2755
|
+
Processing by UsersController#destroy as HTML
|
2756
|
+
Parameters: {"id"=>"1"}
|
2757
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
2758
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2759
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2760
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
2761
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2762
|
+
Redirected to http://test.host/users
|
2763
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
|
2764
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" [0m
|
2765
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2768
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2769
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2770
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2771
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2772
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2773
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2774
|
+
Processing by UsersController#edit as HTML
|
2775
|
+
Parameters: {"id"=>"1"}
|
2776
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2777
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
2778
|
+
Rendered users/_form.html.erb (3.1ms)
|
2779
|
+
Completed 200 OK in 23ms (Views: 17.6ms | ActiveRecord: 0.2ms)
|
2780
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
2781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2782
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2783
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2784
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2785
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2786
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2787
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2788
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2789
|
+
Processing by UsersController#index as HTML
|
2790
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2791
|
+
Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 0.1ms)
|
2792
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2793
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2794
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2795
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2796
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2797
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2799
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2800
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2801
|
+
Processing by UsersController#new as HTML
|
2802
|
+
Rendered users/_form.html.erb (1.9ms)
|
2803
|
+
Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
2804
|
+
[1m[35m (1.7ms)[0m rollback transaction
|
2805
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2807
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2808
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2809
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1[0m
|
2810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2811
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2812
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2813
|
+
Processing by UsersController#show as HTML
|
2814
|
+
Parameters: {"id"=>"1"}
|
2815
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2816
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
2817
|
+
Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.2ms)
|
2818
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2819
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2820
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2821
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", nil], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2822
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2823
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'system_admin' LIMIT 1
|
2824
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2825
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00], ["name", "system_admin"], ["updated_at", Thu, 07 Jun 2012 14:22:22 UTC +00:00]]
|
2826
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2827
|
+
Processing by UsersController#update as HTML
|
2828
|
+
Parameters: {"user"=>{"name"=>nil}, "id"=>"1"}
|
2829
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
2830
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
2831
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2833
|
+
Redirected to http://test.host/users/1
|
2834
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.4ms)
|
2835
|
+
[1m[35m (0.9ms)[0m rollback transaction
|