odania_core 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1f46bb5a9acd94b835c55e63b141bfd1cd55d3f
4
- data.tar.gz: 124fa6548b92cfd02a50c0aed6323dfd1730aef7
3
+ metadata.gz: e89c0f4dc03ebb43f4c90086e465a1d6f3054331
4
+ data.tar.gz: 800f98632a21f7f5b582d505303b6dc7a2169827
5
5
  SHA512:
6
- metadata.gz: 2d79047df267a25810a0db140a3188789633fa7bce283b087d9ef6a915be7a91e7232ba614f9163c5dbdfab8724c3419f2390690b2b950f6916fe354510b3cbe
7
- data.tar.gz: 7b03d19597941411c36d0cf59228cafacbfd705e945212e1e3c672910a247847c55790c5cd8b50a0d4f88a81026c8ef29532a6f034b4aca2424d3b3d3e980d8d
6
+ metadata.gz: 40bc3e3ec7564d79982c95630b7199620fbbfde93f6a3678196251d62df4c23ae4ed956f3cf37db4feb54d885c5fbb649c3e2cb48f322f3904d0fcb3c42a38f4
7
+ data.tar.gz: 841e266073e9725022d9935b792a0ca21233ce1659568118b47a682526f7c4a17cc409cf31b7867fd72b42b6c7e0090423f12f1e01dcf49ac279863d9361ca27
@@ -1,5 +1,5 @@
1
1
  class AdminController < ApplicationController
2
- before_filter :authenticate_user!, :choose_site
2
+ before_action :authenticate_user!, :choose_site, :require_admin_role!
3
3
  skip_before_filter :valid_site!
4
4
  layout :set_admin_layout
5
5
 
@@ -5,7 +5,7 @@ class Odania::ContentsController < ApplicationController
5
5
  @odania_contents = current_site.contents
6
6
 
7
7
  unless params[:tag].nil?
8
- odania_tag = Odania::Tag.where(name: params[:tag]).first
8
+ odania_tag = Odania::Tag.where(name: params[:tag], language_id: current_menu.language_id).first
9
9
  @odania_contents = @odania_contents.joins(:tags).where(odania_tag_xrefs: {tag_id: odania_tag.id}) unless odania_tag.nil?
10
10
  end
11
11
 
@@ -16,6 +16,8 @@ module Odania
16
16
  validate :validate_template_exists, :validate_language_is_present
17
17
  validates_presence_of :host, :name
18
18
 
19
+ has_many :users, class_name: 'Odania::User'
20
+
19
21
  def self.get_site(host)
20
22
  Odania::Site.active.where(host: host).first
21
23
  end
@@ -1,5 +1,8 @@
1
1
  class Odania::User < ActiveRecord::Base
2
2
  validates_length_of :name, minimum: 3, maximum: 20
3
- validates_uniqueness_of :name
4
- validates_uniqueness_of :email
3
+ validates_uniqueness_of :name, :scope => [:site_id]
4
+ validates_uniqueness_of :email, :scope => [:site_id]
5
+
6
+ has_many :roles, class_name: 'Odania::UserRole'
7
+ belongs_to :site, class_name: 'Odania::Site'
5
8
  end
@@ -0,0 +1,5 @@
1
+ class Odania::UserRole < ActiveRecord::Base
2
+ enum role: {user: 0, admin: 1}
3
+
4
+ belongs_to :user, class_name: 'Odania::User'
5
+ end
@@ -2,7 +2,6 @@ class CreateContent < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :odania_contents do |t|
4
4
  t.string :title, null: false
5
- t.integer :menu_item_id
6
5
  t.text :body, null: false
7
6
  t.text :body_filtered, null: false
8
7
  t.text :body_short, null: false
@@ -1,6 +1,7 @@
1
1
  class CreateUser < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :odania_users do |t|
4
+ t.integer :site_id
4
5
  t.string :name
5
6
  t.string :email
6
7
  t.string :admin_layout
@@ -4,8 +4,9 @@ class CreateOdaniaTags < ActiveRecord::Migration
4
4
  t.string :name, null: false
5
5
  t.integer :site_id, null: false
6
6
  t.integer :count, default: 0
7
+ t.integer :language_id
7
8
  end
8
9
 
9
- add_index :odania_tags, [:site_id, :name], unique: true
10
+ add_index :odania_tags, [:site_id, :language_id, :name], unique: true
10
11
  end
11
12
  end
@@ -0,0 +1,10 @@
1
+ class CreateOdaniaUserRoles < ActiveRecord::Migration
2
+ def change
3
+ create_table :odania_user_roles do |t|
4
+ t.integer :user_id
5
+ t.integer :role, default: 0
6
+ end
7
+
8
+ add_index :odania_user_roles, [:user_id]
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ class AddSiteIdToUser < ActiveRecord::Migration
2
+ def change
3
+ add_column :odania_users, :site_id, :integer
4
+ end
5
+ end
@@ -31,6 +31,13 @@ module Odania
31
31
  return true
32
32
  end
33
33
 
34
+ def require_admin_role!
35
+ return false unless user_signed_in?
36
+
37
+ role = current_user.roles.where(role: Odania::UserRole.roles[:admin]).first
38
+ return redirect_to root_path, notice: t('Not allowed') if role.nil?
39
+ end
40
+
34
41
  # Define authentication filters and accessor helpers.
35
42
  #
36
43
  # Generated methods:
@@ -8,7 +8,7 @@ module Odania
8
8
  # Remove old tags
9
9
  removed = prev_tags - cur_tags
10
10
  removed.each do |tag|
11
- tag = Odania::Tag.where(name: tag, site_id: self.site_id).first
11
+ tag = Odania::Tag.where(name: tag, site_id: self.site_id, language_id: self.language_id).first
12
12
  unless tag.nil?
13
13
  xref = Odania::TagXref.where(tag_id: tag.id, ref: self, context: context).first
14
14
  xref.destroy unless xref.nil?
@@ -18,8 +18,8 @@ module Odania
18
18
  # Add new tags
19
19
  new_tags = cur_tags - prev_tags
20
20
  new_tags.each do |tag|
21
- odania_tag = Odania::Tag.where(name: tag, site_id: self.site_id).first
22
- odania_tag = Odania::Tag.create(name: tag, site_id: self.site_id) if odania_tag.nil?
21
+ odania_tag = Odania::Tag.where(name: tag, site_id: self.site_id, language_id: self.language_id).first
22
+ odania_tag = Odania::Tag.create(name: tag, site_id: self.site_id, language_id: self.language_id) if odania_tag.nil?
23
23
  Odania::TagXref.create(tag_id: odania_tag.id, ref: self, context: context)
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module OdaniaCore
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -16,7 +16,7 @@ class Odania::ContentsControllerTest < ActionController::TestCase
16
16
  end
17
17
 
18
18
  test 'test should render content list for tag' do
19
- content = create(:content, site: @site, language: @site.default_language)
19
+ content = build(:content, site: @site, language: @site.default_language)
20
20
  content.body = 'This is a new tag #TZ2'
21
21
  content.save!
22
22
 
data/test/dummy/bin/rails CHANGED
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
2
  APP_PATH = File.expand_path('../../config/application', __FILE__)
7
3
  require_relative '../config/boot'
8
4
  require 'rails/commands'
data/test/dummy/bin/rake CHANGED
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
2
  require_relative '../config/boot'
7
3
  require 'rake'
8
4
  Rake.application.run
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140425190306) do
14
+ ActiveRecord::Schema.define(version: 20140425202800) do
15
15
 
16
16
  create_table "ckeditor_assets", force: true do |t|
17
17
  t.string "data_file_name", null: false
@@ -112,7 +112,14 @@ ActiveRecord::Schema.define(version: 20140425190306) do
112
112
  t.integer "language_id"
113
113
  end
114
114
 
115
- add_index "odania_tags", ["site_id", "name"], name: "index_odania_tags_on_site_id_and_name", unique: true
115
+ add_index "odania_tags", ["site_id", "language_id", "name"], name: "index_odania_tags_on_site_id_and_language_id_and_name", unique: true
116
+
117
+ create_table "odania_user_roles", force: true do |t|
118
+ t.integer "user_id"
119
+ t.integer "role", default: 0
120
+ end
121
+
122
+ add_index "odania_user_roles", ["user_id"], name: "index_odania_user_roles_on_user_id"
116
123
 
117
124
  create_table "odania_users", force: true do |t|
118
125
  t.string "name"
@@ -122,6 +129,7 @@ ActiveRecord::Schema.define(version: 20140425190306) do
122
129
  t.datetime "last_login"
123
130
  t.datetime "created_at"
124
131
  t.datetime "updated_at"
132
+ t.integer "site_id"
125
133
  end
126
134
 
127
135
  end
Binary file
@@ -128469,3 +128469,1772 @@ Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.6ms)
128469
128469
 
128470
128470
 
128471
128471
  Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2014-04-25 21:16:20 +0200
128472
+
128473
+
128474
+ Started GET "/de/contents/1-asdasd" for 127.0.0.1 at 2014-04-25 21:25:37 +0200
128475
+ Processing by Odania::ContentsController#show as HTML
128476
+ Parameters: {"locale"=>"de", "id"=>"1-asdasd"}
128477
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128478
+ Odania::Language Load (0.5ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128479
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128480
+ Odania::Language Load (0.3ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128481
+ Odania::Content Load (0.6ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`site_id` = 1 AND `odania_contents`.`id` = 1 AND `odania_contents`.`language_id` = 1 ORDER BY `odania_contents`.`id` ASC LIMIT 1
128482
+ Odania::User Load (0.5ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`id` = 1 LIMIT 1
128483
+ Odania::Tag Load (0.3ms) SELECT `odania_tags`.* FROM `odania_tags` INNER JOIN `odania_tag_xrefs` ON `odania_tags`.`id` = `odania_tag_xrefs`.`tag_id` WHERE `odania_tag_xrefs`.`ref_id` = 1 AND `odania_tag_xrefs`.`ref_type` = 'Odania::Content'
128484
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (36.4ms)
128485
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.8ms)
128486
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/show.html.erb within layouts/odania_core/application (40.8ms)
128487
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128488
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
128489
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128490
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
128491
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
128492
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128493
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128494
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
128495
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
128496
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128497
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128498
+ Odania::MenuItem Load (0.5ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
128499
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
128500
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128501
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128502
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
128503
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
128504
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (40.3ms)
128505
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (49.3ms)
128506
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
128507
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128508
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.1ms)
128509
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
128510
+ Completed 200 OK in 196ms (Views: 107.6ms | ActiveRecord: 21.3ms)
128511
+
128512
+
128513
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128514
+
128515
+
128516
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128517
+
128518
+
128519
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128520
+
128521
+
128522
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128523
+
128524
+
128525
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128526
+
128527
+
128528
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128529
+
128530
+
128531
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128532
+
128533
+
128534
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128535
+
128536
+
128537
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128538
+
128539
+
128540
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128541
+
128542
+
128543
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128544
+
128545
+
128546
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128547
+
128548
+
128549
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128550
+
128551
+
128552
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128553
+
128554
+
128555
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128556
+
128557
+
128558
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128559
+
128560
+
128561
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128562
+
128563
+
128564
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128565
+
128566
+
128567
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128568
+
128569
+
128570
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128571
+
128572
+
128573
+ Started PUT "/track_view/Odania::Content/1-asdasd" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128574
+ Processing by Odania::StatisticsController#track_view as JS
128575
+ Parameters: {"amp"=>nil, "authenticity_token"=>"", "#39"=>nil, " encodeURIComponent("=>nil, "0Sdyle5cZte5w4wUt3F2ZeKbThl/ycbYU5COgEEJ3ik"=>"", ") "=>nil, "type"=>"Odania::Content", "id"=>"1-asdasd"}
128576
+ Odania::Content Load (2.4ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`id` = 1 ORDER BY `odania_contents`.`id` ASC LIMIT 1
128577
+ Rendered text template (0.1ms)
128578
+ Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 2.4ms)
128579
+
128580
+
128581
+ Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2014-04-25 21:25:38 +0200
128582
+
128583
+
128584
+ Started GET "/de/tags" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128585
+ Processing by Odania::TagsController#index as HTML
128586
+ Parameters: {"locale"=>"de"}
128587
+ Odania::Site Load (0.8ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128588
+ Odania::Tag Exists (0.7ms) SELECT 1 AS one FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1 LIMIT 1
128589
+ Odania::Tag Load (0.3ms) SELECT `odania_tags`.* FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1
128590
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/tags/index.html.erb within layouts/odania_core/application (7.0ms)
128591
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128592
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128593
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128594
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128595
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
128596
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128597
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
128598
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
128599
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128600
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128601
+ Odania::MenuItem Load (0.5ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
128602
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
128603
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128604
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128605
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
128606
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
128607
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128608
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128609
+ Odania::MenuItem Load (3.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
128610
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.7ms)
128611
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (36.0ms)
128612
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (47.3ms)
128613
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
128614
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128615
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (3.5ms)
128616
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
128617
+ Completed 200 OK in 84ms (Views: 69.2ms | ActiveRecord: 9.0ms)
128618
+
128619
+
128620
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128621
+
128622
+
128623
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128624
+
128625
+
128626
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128627
+
128628
+
128629
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128630
+
128631
+
128632
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128633
+
128634
+
128635
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128636
+
128637
+
128638
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128639
+
128640
+
128641
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128642
+
128643
+
128644
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:42 +0200
128645
+
128646
+
128647
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128648
+
128649
+
128650
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128651
+
128652
+
128653
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128654
+
128655
+
128656
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128657
+
128658
+
128659
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128660
+
128661
+
128662
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128663
+
128664
+
128665
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128666
+
128667
+
128668
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128669
+
128670
+
128671
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128672
+
128673
+
128674
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128675
+
128676
+
128677
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:25:43 +0200
128678
+
128679
+
128680
+ Started GET "/de/tags" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128681
+ Processing by Odania::TagsController#index as HTML
128682
+ Parameters: {"locale"=>"de"}
128683
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128684
+ Odania::Tag Exists (0.3ms) SELECT 1 AS one FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1 LIMIT 1
128685
+ Odania::Tag Load (0.4ms) SELECT `odania_tags`.* FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1
128686
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/tags/index.html.erb within layouts/odania_core/application (5.0ms)
128687
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128688
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128689
+ Odania::Language Load (0.3ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128690
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128691
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
128692
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128693
+ Odania::MenuItem Load (0.5ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
128694
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
128695
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128696
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128697
+ Odania::MenuItem Load (1.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
128698
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
128699
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128700
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128701
+ Odania::MenuItem Load (0.7ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
128702
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
128703
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128704
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128705
+ Odania::MenuItem Load (4.8ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
128706
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.8ms)
128707
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (41.9ms)
128708
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (51.1ms)
128709
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
128710
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128711
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.3ms)
128712
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
128713
+ Completed 200 OK in 85ms (Views: 70.6ms | ActiveRecord: 11.1ms)
128714
+
128715
+
128716
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128717
+
128718
+
128719
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128720
+
128721
+
128722
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128723
+
128724
+
128725
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128726
+
128727
+
128728
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128729
+
128730
+
128731
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128732
+
128733
+
128734
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128735
+
128736
+
128737
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128738
+
128739
+
128740
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128741
+
128742
+
128743
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128744
+
128745
+
128746
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128747
+
128748
+
128749
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128750
+
128751
+
128752
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128753
+
128754
+
128755
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128756
+
128757
+
128758
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128759
+
128760
+
128761
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128762
+
128763
+
128764
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128765
+
128766
+
128767
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128768
+
128769
+
128770
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128771
+
128772
+
128773
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:22 +0200
128774
+
128775
+
128776
+ Started GET "/de/tags/t1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128777
+ Processing by Odania::TagsController#show as HTML
128778
+ Parameters: {"locale"=>"de", "tag"=>"t1"}
128779
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128780
+ Odania::Tag Load (0.3ms) SELECT `odania_tags`.* FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1 AND `odania_tags`.`name` = 't1' ORDER BY `odania_tags`.`id` ASC LIMIT 1
128781
+ Odania::TagXref Exists (0.3ms) SELECT 1 AS one FROM `odania_tag_xrefs` WHERE `odania_tag_xrefs`.`tag_id` = 1 LIMIT 1
128782
+ Odania::TagXref Load (0.4ms) SELECT `odania_tag_xrefs`.* FROM `odania_tag_xrefs` WHERE `odania_tag_xrefs`.`tag_id` = 1
128783
+ Odania::Content Load (0.5ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`id` = 1 LIMIT 1
128784
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128785
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/tags/show.html.erb within layouts/odania_core/application (11.8ms)
128786
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128787
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128788
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128789
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128790
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
128791
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128792
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
128793
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
128794
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128795
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128796
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
128797
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
128798
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128799
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128800
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
128801
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
128802
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128803
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128804
+ Odania::MenuItem Load (4.2ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
128805
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.8ms)
128806
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (34.1ms)
128807
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (43.1ms)
128808
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
128809
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128810
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
128811
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
128812
+ Completed 200 OK in 91ms (Views: 68.9ms | ActiveRecord: 10.8ms)
128813
+
128814
+
128815
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128816
+
128817
+
128818
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128819
+
128820
+
128821
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128822
+
128823
+
128824
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128825
+
128826
+
128827
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128828
+
128829
+
128830
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128831
+
128832
+
128833
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128834
+
128835
+
128836
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128837
+
128838
+
128839
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128840
+
128841
+
128842
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128843
+
128844
+
128845
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128846
+
128847
+
128848
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128849
+
128850
+
128851
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128852
+
128853
+
128854
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:23 +0200
128855
+
128856
+
128857
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128858
+
128859
+
128860
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128861
+
128862
+
128863
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128864
+
128865
+
128866
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128867
+
128868
+
128869
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128870
+
128871
+
128872
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:24 +0200
128873
+
128874
+
128875
+ Started GET "/de/contents/1-asdasd" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128876
+ Processing by Odania::ContentsController#show as HTML
128877
+ Parameters: {"locale"=>"de", "id"=>"1-asdasd"}
128878
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128879
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128880
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128881
+ Odania::Language Load (0.3ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128882
+ Odania::Content Load (0.4ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`site_id` = 1 AND `odania_contents`.`id` = 1 AND `odania_contents`.`language_id` = 1 ORDER BY `odania_contents`.`id` ASC LIMIT 1
128883
+ Odania::User Load (0.4ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`id` = 1 LIMIT 1
128884
+ Odania::Tag Load (0.5ms) SELECT `odania_tags`.* FROM `odania_tags` INNER JOIN `odania_tag_xrefs` ON `odania_tags`.`id` = `odania_tag_xrefs`.`tag_id` WHERE `odania_tag_xrefs`.`ref_id` = 1 AND `odania_tag_xrefs`.`ref_type` = 'Odania::Content'
128885
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (8.8ms)
128886
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.9ms)
128887
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/show.html.erb within layouts/odania_core/application (13.3ms)
128888
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128889
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
128890
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128891
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
128892
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
128893
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128894
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128895
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
128896
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
128897
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128898
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128899
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
128900
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
128901
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
128902
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128903
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
128904
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
128905
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (28.5ms)
128906
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (31.2ms)
128907
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
128908
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128909
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (3.8ms)
128910
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
128911
+ Completed 200 OK in 78ms (Views: 61.6ms | ActiveRecord: 5.5ms)
128912
+
128913
+
128914
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128915
+
128916
+
128917
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128918
+
128919
+
128920
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128921
+
128922
+
128923
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128924
+
128925
+
128926
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128927
+
128928
+
128929
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128930
+
128931
+
128932
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128933
+
128934
+
128935
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128936
+
128937
+
128938
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128939
+
128940
+
128941
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128942
+
128943
+
128944
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128945
+
128946
+
128947
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128948
+
128949
+
128950
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128951
+
128952
+
128953
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128954
+
128955
+
128956
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128957
+
128958
+
128959
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128960
+
128961
+
128962
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128963
+
128964
+
128965
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128966
+
128967
+
128968
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128969
+
128970
+
128971
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128972
+
128973
+
128974
+ Started PUT "/track_view/Odania::Content/1-asdasd" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128975
+ Processing by Odania::StatisticsController#track_view as JS
128976
+ Parameters: {"amp"=>nil, "authenticity_token"=>"", "#39"=>nil, " encodeURIComponent("=>nil, "0Sdyle5cZte5w4wUt3F2ZeKbThl/ycbYU5COgEEJ3ik"=>"", ") "=>nil, "type"=>"Odania::Content", "id"=>"1-asdasd"}
128977
+ Odania::Content Load (2.7ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`id` = 1 ORDER BY `odania_contents`.`id` ASC LIMIT 1
128978
+ Rendered text template (0.1ms)
128979
+ Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 2.7ms)
128980
+
128981
+
128982
+ Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2014-04-25 21:28:25 +0200
128983
+
128984
+
128985
+ Started GET "/de/tags/t1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
128986
+ Processing by Odania::TagsController#show as HTML
128987
+ Parameters: {"locale"=>"de", "tag"=>"t1"}
128988
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`is_active` = 1 AND `odania_sites`.`host` = 'lvh.me:3000' ORDER BY `odania_sites`.`id` ASC LIMIT 1
128989
+ Odania::Tag Load (0.3ms) SELECT `odania_tags`.* FROM `odania_tags` WHERE `odania_tags`.`site_id` = 1 AND `odania_tags`.`name` = 't1' ORDER BY `odania_tags`.`id` ASC LIMIT 1
128990
+ Odania::TagXref Exists (0.3ms) SELECT 1 AS one FROM `odania_tag_xrefs` WHERE `odania_tag_xrefs`.`tag_id` = 1 LIMIT 1
128991
+ Odania::TagXref Load (0.3ms) SELECT `odania_tag_xrefs`.* FROM `odania_tag_xrefs` WHERE `odania_tag_xrefs`.`tag_id` = 1
128992
+ Odania::Content Load (0.4ms) SELECT `odania_contents`.* FROM `odania_contents` WHERE `odania_contents`.`id` = 1 LIMIT 1
128993
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1
128994
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/tags/show.html.erb within layouts/odania_core/application (8.3ms)
128995
+ Odania::Language Load (0.4ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`iso_639_1` = 'de' ORDER BY `odania_languages`.`id` ASC LIMIT 1
128996
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`language_id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
128997
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
128998
+ Odania::MenuItem Load (0.3ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` IS NULL ORDER BY position ASC
128999
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1
129000
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
129001
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 2 ORDER BY position ASC
129002
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
129003
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
129004
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
129005
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 1 ORDER BY position ASC
129006
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
129007
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
129008
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
129009
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 3 ORDER BY position ASC
129010
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
129011
+ CACHE (0.1ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`id` = 1 LIMIT 1 [["id", 1]]
129012
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
129013
+ Odania::MenuItem Load (0.4ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 AND `odania_menu_items`.`parent_id` = 4 ORDER BY position ASC
129014
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
129015
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (30.2ms)
129016
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (38.7ms)
129017
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1
129018
+ CACHE (0.1ms) SELECT `odania_languages`.* FROM `odania_languages` WHERE `odania_languages`.`id` = 1 LIMIT 1 [["id", 1]]
129019
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (3.7ms)
129020
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
129021
+ Completed 200 OK in 77ms (Views: 63.9ms | ActiveRecord: 5.9ms)
129022
+
129023
+
129024
+ Started GET "/assets/odania_core/application.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129025
+
129026
+
129027
+ Started GET "/assets/odania_core/content.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129028
+
129029
+
129030
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129031
+
129032
+
129033
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129034
+
129035
+
129036
+ Started GET "/assets/odania_core/style.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129037
+
129038
+
129039
+ Started GET "/assets/odania_core/tags.css?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129040
+
129041
+
129042
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129043
+
129044
+
129045
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129046
+
129047
+
129048
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129049
+
129050
+
129051
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129052
+
129053
+
129054
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129055
+
129056
+
129057
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129058
+
129059
+
129060
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129061
+
129062
+
129063
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129064
+
129065
+
129066
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129067
+
129068
+
129069
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129070
+
129071
+
129072
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129073
+
129074
+
129075
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129076
+
129077
+
129078
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129079
+
129080
+
129081
+ Started GET "/assets/odania_core/application.js?body=1" for 127.0.0.1 at 2014-04-25 21:28:27 +0200
129082
+
129083
+
129084
+ Started GET "/admin/odania/contents" for 127.0.0.1 at 2014-04-25 22:17:07 +0200
129085
+ Processing by Admin::Odania::ContentsController#overview as HTML
129086
+ Odania::Site Load (0.2ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129087
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` IS NULL ORDER BY `odania_menus`.`id` ASC LIMIT 1
129088
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129089
+ Completed 500 Internal Server Error in 43ms
129090
+
129091
+ NoMethodError (undefined method `require_admin_role!' for #<Admin::Odania::ContentsController:0x007f727c018dd0>):
129092
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129093
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129094
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129095
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129096
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129097
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129098
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129099
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129100
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129101
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129102
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129103
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129104
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129105
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129106
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129107
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129108
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129109
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129110
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129111
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129112
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129113
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129114
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129115
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129116
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129117
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129118
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129119
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129120
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129121
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129122
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129123
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129124
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129125
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129126
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129127
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129128
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129129
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129130
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129131
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129132
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129133
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129134
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129135
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129136
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129137
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129138
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129139
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129140
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129141
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129142
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129143
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129144
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129145
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129146
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129147
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129148
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129149
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129150
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129151
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129152
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129153
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129154
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129155
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129156
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129157
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129158
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129159
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129160
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129161
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129162
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129163
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129164
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129165
+
129166
+
129167
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
129168
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
129169
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
129170
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (25.3ms)
129171
+
129172
+
129173
+ Started GET "/admin/odania/contents" for 127.0.0.1 at 2014-04-25 22:17:21 +0200
129174
+ Processing by Admin::Odania::ContentsController#overview as HTML
129175
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129176
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` IS NULL ORDER BY `odania_menus`.`id` ASC LIMIT 1
129177
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129178
+ Odania::User Load (0.4ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' AND `odania_users`.`email` = 'mail@example.com' LIMIT 1
129179
+  (0.3ms) BEGIN
129180
+ Odania::User Exists (0.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129181
+ Odania::User Exists (0.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129182
+  (0.3ms) ROLLBACK
129183
+ Mysql2::Error: Table 'odania_core_development.odania_user_roles' doesn't exist: SHOW FULL FIELDS FROM `odania_user_roles`
129184
+ Completed 500 Internal Server Error in 103ms
129185
+
129186
+ ActiveRecord::StatementInvalid (Mysql2::Error: Table 'odania_core_development.odania_user_roles' doesn't exist: SHOW FULL FIELDS FROM `odania_user_roles`):
129187
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:301:in `query'
129188
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:301:in `block in execute'
129189
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
129190
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129191
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'
129192
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:301:in `execute'
129193
+ activerecord (4.1.0) lib/active_record/connection_adapters/mysql2_adapter.rb:228:in `execute'
129194
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:308:in `execute_and_free'
129195
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:449:in `columns'
129196
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:93:in `block in prepare_default_proc'
129197
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:44:in `yield'
129198
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:44:in `columns'
129199
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:97:in `block in prepare_default_proc'
129200
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:50:in `yield'
129201
+ activerecord (4.1.0) lib/active_record/connection_adapters/schema_cache.rb:50:in `columns_hash'
129202
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:47:in `column_for'
129203
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:59:in `bind'
129204
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:86:in `block in add_constraints'
129205
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:69:in `each'
129206
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:69:in `each_with_index'
129207
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:69:in `add_constraints'
129208
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:18:in `scope'
129209
+ activerecord (4.1.0) lib/active_record/associations/association_scope.rb:7:in `scope'
129210
+ activerecord (4.1.0) lib/active_record/associations/association.rb:97:in `association_scope'
129211
+ activerecord (4.1.0) lib/active_record/associations/association.rb:86:in `scope'
129212
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:404:in `scope'
129213
+ activerecord (4.1.0) lib/active_record/associations/collection_proxy.rb:36:in `initialize'
129214
+ activerecord (4.1.0) lib/active_record/relation/delegation.rb:106:in `new'
129215
+ activerecord (4.1.0) lib/active_record/relation/delegation.rb:106:in `create'
129216
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:36:in `reader'
129217
+ activerecord (4.1.0) lib/active_record/associations/builder/association.rb:110:in `roles'
129218
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:10:in `current_user'
129219
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129220
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129221
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129222
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129223
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129224
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129225
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129226
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129227
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129228
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129229
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129230
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129231
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129232
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129233
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129234
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129235
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129236
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129237
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129238
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129239
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129240
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129241
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129242
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129243
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129244
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129245
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129246
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129247
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129248
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129249
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129250
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129251
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129252
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129253
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129254
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129255
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129256
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129257
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129258
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129259
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129260
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129261
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129262
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129263
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129264
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129265
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129266
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129267
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129268
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129269
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129270
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129271
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129272
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129273
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129274
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129275
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129276
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129277
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129278
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129279
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129280
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129281
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129282
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129283
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129284
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129285
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129286
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129287
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129288
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129289
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129290
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129291
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129292
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129293
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129294
+
129295
+
129296
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
129297
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.3ms)
129298
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
129299
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.8ms)
129300
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
129301
+ Migrating to CreateOdaniaUserRoles (20140425195051)
129302
+  (4.8ms) CREATE TABLE `odania_user_roles` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `role` int(11) DEFAULT 0) ENGINE=InnoDB
129303
+  (47.7ms) CREATE INDEX `index_odania_user_roles_on_user_id` ON `odania_user_roles` (`user_id`) 
129304
+  (0.3ms) BEGIN
129305
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140425195051')
129306
+  (3.1ms) COMMIT
129307
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
129308
+
129309
+
129310
+ Started GET "/admin/odania/contents" for 127.0.0.1 at 2014-04-25 22:17:28 +0200
129311
+ Processing by Admin::Odania::ContentsController#overview as HTML
129312
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129313
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` IS NULL ORDER BY `odania_menus`.`id` ASC LIMIT 1
129314
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129315
+ Completed 422 Unprocessable Entity in 34ms
129316
+
129317
+ ActiveRecord::RecordNotSaved (You cannot call create unless the parent is saved):
129318
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:453:in `create_record'
129319
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:137:in `create'
129320
+ activerecord (4.1.0) lib/active_record/associations/collection_proxy.rb:285:in `create'
129321
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
129322
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129323
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129324
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129325
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129326
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129327
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129328
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129329
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129330
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129331
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129332
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129333
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129334
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129335
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129336
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129337
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129338
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129339
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129340
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129341
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129342
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129343
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129344
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129345
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129346
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129347
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129348
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129349
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129350
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129351
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129352
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129353
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129354
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129355
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129356
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129357
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129358
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129359
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129360
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129361
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129362
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129363
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129364
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129365
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129366
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129367
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129368
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129369
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129370
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129371
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129372
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129373
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129374
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129375
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129376
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129377
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129378
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129379
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129380
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129381
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129382
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129383
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129384
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129385
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129386
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129387
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129388
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129389
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129390
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129391
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129392
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129393
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129394
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129395
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129396
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129397
+
129398
+
129399
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
129400
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms)
129401
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
129402
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.2ms)
129403
+
129404
+
129405
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:18:19 +0200
129406
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129407
+ Parameters: {"menu_id"=>"1"}
129408
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129409
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129410
+ Odania::User Load (0.2ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' AND `odania_users`.`email` = 'mail@example.com' LIMIT 1
129411
+  (0.6ms) BEGIN
129412
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129413
+ Odania::User Exists (1.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129414
+  (0.3ms) ROLLBACK
129415
+  (0.3ms) BEGIN
129416
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129417
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129418
+  (0.4ms) ROLLBACK
129419
+ Completed 422 Unprocessable Entity in 122ms
129420
+
129421
+ ActiveRecord::RecordNotSaved (You cannot call create unless the parent is saved):
129422
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:453:in `create_record'
129423
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:137:in `create'
129424
+ activerecord (4.1.0) lib/active_record/associations/collection_proxy.rb:285:in `create'
129425
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:12:in `current_user'
129426
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129427
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129428
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129429
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129430
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129431
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129432
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129433
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129434
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129435
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129436
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129437
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129438
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129439
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129440
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129441
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129442
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129443
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129444
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129445
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129446
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129447
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129448
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129449
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129450
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129451
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129452
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129453
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129454
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129455
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129456
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129457
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129458
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129459
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129460
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129461
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129462
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129463
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129464
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129465
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129466
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129467
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129468
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129469
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129470
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129471
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129472
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129473
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129474
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129475
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129476
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129477
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129478
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129479
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129480
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129481
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129482
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129483
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129484
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129485
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129486
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129487
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129488
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129489
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129490
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129491
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129492
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129493
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129494
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129495
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129496
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129497
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129498
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129499
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129500
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129501
+
129502
+
129503
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
129504
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
129505
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms)
129506
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.1ms)
129507
+
129508
+
129509
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:18:21 +0200
129510
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129511
+ Parameters: {"menu_id"=>"1"}
129512
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129513
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129514
+  (0.3ms) BEGIN
129515
+ Odania::User Exists (0.3ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129516
+ Odania::User Exists (0.3ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129517
+  (0.3ms) ROLLBACK
129518
+ Completed 422 Unprocessable Entity in 15ms
129519
+
129520
+ ActiveRecord::RecordNotSaved (You cannot call create unless the parent is saved):
129521
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:453:in `create_record'
129522
+ activerecord (4.1.0) lib/active_record/associations/collection_association.rb:137:in `create'
129523
+ activerecord (4.1.0) lib/active_record/associations/collection_proxy.rb:285:in `create'
129524
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:12:in `current_user'
129525
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129526
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129527
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129528
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129529
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129530
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129531
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129532
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129533
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129534
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129535
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129536
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129537
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129538
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129539
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129540
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129541
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129542
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129543
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129544
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129545
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129546
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129547
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129548
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129549
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129550
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129551
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129552
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129553
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129554
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129555
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129556
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129557
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129558
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129559
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129560
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129561
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129562
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129563
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129564
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129565
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129566
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129567
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129568
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129569
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129570
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129571
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129572
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129573
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129574
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129575
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129576
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129577
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129578
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129579
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129580
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129581
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129582
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129583
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129584
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129585
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129586
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129587
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129588
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129589
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129590
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129591
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129592
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129593
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129594
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129595
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129596
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129597
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129598
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129599
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129600
+
129601
+
129602
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
129603
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
129604
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
129605
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.2ms)
129606
+
129607
+
129608
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:18:38 +0200
129609
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129610
+ Parameters: {"menu_id"=>"1"}
129611
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129612
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129613
+ Odania::User Load (0.3ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' AND `odania_users`.`email` = 'mail@example.com' LIMIT 1
129614
+  (0.4ms) BEGIN
129615
+ Odania::User Exists (0.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129616
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129617
+  (0.3ms) ROLLBACK
129618
+  (0.3ms) BEGIN
129619
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129620
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129621
+  (0.4ms) ROLLBACK
129622
+ Completed 422 Unprocessable Entity in 119ms
129623
+
129624
+ ActiveRecord::RecordInvalid (Validation failed: Name has already been taken):
129625
+ activerecord (4.1.0) lib/active_record/validations.rb:57:in `save!'
129626
+ activerecord (4.1.0) lib/active_record/attribute_methods/dirty.rb:29:in `save!'
129627
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `block in save!'
129628
+ activerecord (4.1.0) lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
129629
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
129630
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
129631
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
129632
+ activerecord (4.1.0) lib/active_record/transactions.rb:208:in `transaction'
129633
+ activerecord (4.1.0) lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
129634
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `save!'
129635
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
129636
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129637
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129638
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129639
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129640
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129641
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129642
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129643
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129644
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129645
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129646
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129647
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129648
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129649
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129650
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129651
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129652
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129653
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129654
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129655
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129656
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129657
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129658
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129659
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129660
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129661
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129662
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129663
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129664
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129665
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129666
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129667
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129668
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129669
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129670
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129671
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129672
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129673
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129674
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129675
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129676
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129677
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129678
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129679
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129680
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129681
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129682
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129683
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129684
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129685
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129686
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129687
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129688
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129689
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129690
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129691
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129692
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129693
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129694
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129695
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129696
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129697
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129698
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129699
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129700
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129701
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129702
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129703
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129704
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129705
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129706
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129707
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129708
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129709
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129710
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129711
+
129712
+
129713
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
129714
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.3ms)
129715
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
129716
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.6ms)
129717
+
129718
+
129719
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:20:09 +0200
129720
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129721
+ Parameters: {"menu_id"=>"1"}
129722
+ Odania::Site Load (0.6ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129723
+ Odania::Menu Load (0.5ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129724
+  (0.4ms) BEGIN
129725
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129726
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129727
+  (0.3ms) ROLLBACK
129728
+ Completed 422 Unprocessable Entity in 20ms
129729
+
129730
+ ActiveRecord::RecordInvalid (Validation failed: Name has already been taken):
129731
+ activerecord (4.1.0) lib/active_record/validations.rb:57:in `save!'
129732
+ activerecord (4.1.0) lib/active_record/attribute_methods/dirty.rb:29:in `save!'
129733
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `block in save!'
129734
+ activerecord (4.1.0) lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
129735
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
129736
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
129737
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
129738
+ activerecord (4.1.0) lib/active_record/transactions.rb:208:in `transaction'
129739
+ activerecord (4.1.0) lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
129740
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `save!'
129741
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
129742
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129743
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129744
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129745
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129746
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129747
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129748
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129749
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129750
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129751
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129752
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129753
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129754
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129755
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129756
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129757
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129758
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129759
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129760
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129761
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129762
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129763
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129764
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129765
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129766
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129767
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129768
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129769
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129770
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129771
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129772
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129773
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129774
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129775
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129776
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129777
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129778
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129779
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129780
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129781
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129782
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129783
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129784
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129785
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129786
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129787
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129788
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129789
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129790
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129791
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129792
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129793
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129794
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129795
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129796
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129797
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129798
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129799
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129800
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129801
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129802
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129803
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129804
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129805
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129806
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129807
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129808
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129809
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129810
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129811
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129812
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129813
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129814
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129815
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129816
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129817
+
129818
+
129819
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
129820
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
129821
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
129822
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.6ms)
129823
+
129824
+
129825
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:20:17 +0200
129826
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129827
+ Parameters: {"menu_id"=>"1"}
129828
+ Odania::Site Load (0.4ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129829
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129830
+  (0.6ms) BEGIN
129831
+ Odania::User Exists (0.3ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129832
+ Odania::User Exists (0.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129833
+  (0.2ms) ROLLBACK
129834
+ Odania::User Load (1.0ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' AND `odania_users`.`email` = 'mail@example.com' ORDER BY `odania_users`.`id` ASC LIMIT 1
129835
+ Odania::User Load (0.8ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' ORDER BY `odania_users`.`id` ASC LIMIT 1
129836
+  (0.7ms) BEGIN
129837
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129838
+ CACHE (0.1ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129839
+  (0.6ms) ROLLBACK
129840
+ Completed 422 Unprocessable Entity in 222965ms
129841
+
129842
+ ActiveRecord::RecordInvalid (Validation failed: Name has already been taken):
129843
+ activerecord (4.1.0) lib/active_record/validations.rb:57:in `save!'
129844
+ activerecord (4.1.0) lib/active_record/attribute_methods/dirty.rb:29:in `save!'
129845
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `block in save!'
129846
+ activerecord (4.1.0) lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
129847
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
129848
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
129849
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
129850
+ activerecord (4.1.0) lib/active_record/transactions.rb:208:in `transaction'
129851
+ activerecord (4.1.0) lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
129852
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `save!'
129853
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
129854
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129855
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129856
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129857
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129858
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129859
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129860
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129861
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129862
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129863
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129864
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129865
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129866
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129867
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129868
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129869
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129870
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129871
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129872
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129873
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129874
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129875
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129876
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129877
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129878
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129879
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129880
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129881
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129882
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129883
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129884
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129885
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129886
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129887
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129888
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129889
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129890
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129891
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129892
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129893
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
129894
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
129895
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
129896
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
129897
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
129898
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
129899
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
129900
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
129901
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
129902
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
129903
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
129904
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
129905
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
129906
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
129907
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
129908
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
129909
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
129910
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
129911
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
129912
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
129913
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
129914
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
129915
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
129916
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
129917
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
129918
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129919
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
129920
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
129921
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
129922
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
129923
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
129924
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
129925
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
129926
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
129927
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
129928
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
129929
+
129930
+
129931
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
129932
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms)
129933
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms)
129934
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.9ms)
129935
+
129936
+
129937
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:24:03 +0200
129938
+ Processing by Admin::Odania::MenuItemsController#index as HTML
129939
+ Parameters: {"menu_id"=>"1"}
129940
+ Odania::Site Load (0.6ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
129941
+ Odania::Menu Load (0.6ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
129942
+  (0.4ms) BEGIN
129943
+ Odania::User Exists (0.5ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
129944
+ Odania::User Exists (0.6ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
129945
+  (0.6ms) ROLLBACK
129946
+ Completed 422 Unprocessable Entity in 25ms
129947
+
129948
+ ActiveRecord::RecordInvalid (Validation failed: Name has already been taken, Email has already been taken):
129949
+ activerecord (4.1.0) lib/active_record/validations.rb:57:in `save!'
129950
+ activerecord (4.1.0) lib/active_record/attribute_methods/dirty.rb:29:in `save!'
129951
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `block in save!'
129952
+ activerecord (4.1.0) lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
129953
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
129954
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
129955
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
129956
+ activerecord (4.1.0) lib/active_record/transactions.rb:208:in `transaction'
129957
+ activerecord (4.1.0) lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
129958
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `save!'
129959
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
129960
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
129961
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
129962
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
129963
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
129964
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
129965
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129966
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129967
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129968
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129969
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
129970
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
129971
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
129972
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
129973
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
129974
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
129975
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
129976
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
129977
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
129978
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
129979
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
129980
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
129981
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
129982
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
129983
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
129984
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
129985
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
129986
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
129987
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
129988
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
129989
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
129990
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
129991
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
129992
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
129993
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
129994
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
129995
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
129996
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
129997
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
129998
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
129999
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
130000
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
130001
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
130002
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
130003
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
130004
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
130005
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
130006
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
130007
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
130008
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
130009
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
130010
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
130011
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
130012
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
130013
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
130014
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
130015
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
130016
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
130017
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
130018
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
130019
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
130020
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
130021
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
130022
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
130023
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
130024
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
130025
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
130026
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
130027
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
130028
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
130029
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
130030
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
130031
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
130032
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
130033
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
130034
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
130035
+
130036
+
130037
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
130038
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
130039
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
130040
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.9ms)
130041
+
130042
+
130043
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:24:06 +0200
130044
+ Processing by Admin::Odania::MenuItemsController#index as HTML
130045
+ Parameters: {"menu_id"=>"1"}
130046
+ Odania::Site Load (0.5ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
130047
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
130048
+  (0.3ms) BEGIN
130049
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`name` = BINARY 'Admin' LIMIT 1
130050
+ Odania::User Exists (0.4ms) SELECT 1 AS one FROM `odania_users` WHERE `odania_users`.`email` = BINARY 'mail@example.com' LIMIT 1
130051
+  (0.3ms) ROLLBACK
130052
+ Completed 422 Unprocessable Entity in 21ms
130053
+
130054
+ ActiveRecord::RecordInvalid (Validation failed: Name has already been taken, Email has already been taken):
130055
+ activerecord (4.1.0) lib/active_record/validations.rb:57:in `save!'
130056
+ activerecord (4.1.0) lib/active_record/attribute_methods/dirty.rb:29:in `save!'
130057
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `block in save!'
130058
+ activerecord (4.1.0) lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
130059
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
130060
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
130061
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
130062
+ activerecord (4.1.0) lib/active_record/transactions.rb:208:in `transaction'
130063
+ activerecord (4.1.0) lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
130064
+ activerecord (4.1.0) lib/active_record/transactions.rb:273:in `save!'
130065
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/test/support/test_setup.rb:11:in `current_user'
130066
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:63:in `current_user'
130067
+ /home/mike/workspace/OdaniaPortal/OdaniaCore/lib/odania/controllers/helpers.rb:37:in `require_admin_role!'
130068
+ activesupport (4.1.0) lib/active_support/callbacks.rb:424:in `block in make_lambda'
130069
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `call'
130070
+ activesupport (4.1.0) lib/active_support/callbacks.rb:160:in `block in halting'
130071
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
130072
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
130073
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
130074
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
130075
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
130076
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
130077
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
130078
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
130079
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
130080
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
130081
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
130082
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
130083
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
130084
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
130085
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
130086
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
130087
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
130088
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
130089
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
130090
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
130091
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
130092
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
130093
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
130094
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
130095
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
130096
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
130097
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
130098
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
130099
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
130100
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
130101
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
130102
+ http_accept_language (2.0.1) lib/http_accept_language/middleware.rb:13:in `call'
130103
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
130104
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
130105
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
130106
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
130107
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
130108
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
130109
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
130110
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
130111
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
130112
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
130113
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
130114
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
130115
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
130116
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
130117
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
130118
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
130119
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
130120
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
130121
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
130122
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
130123
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
130124
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
130125
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
130126
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
130127
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
130128
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
130129
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
130130
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
130131
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
130132
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
130133
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
130134
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
130135
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
130136
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
130137
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
130138
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
130139
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
130140
+ /home/mike/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
130141
+
130142
+
130143
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
130144
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
130145
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
130146
+ Rendered /home/mike/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.4ms)
130147
+
130148
+
130149
+ Started GET "/admin/odania/menus/1/menu_items" for 127.0.0.1 at 2014-04-25 22:24:17 +0200
130150
+ Processing by Admin::Odania::MenuItemsController#index as HTML
130151
+ Parameters: {"menu_id"=>"1"}
130152
+ Odania::Site Load (0.3ms) SELECT `odania_sites`.* FROM `odania_sites` WHERE `odania_sites`.`id` = 1 ORDER BY `odania_sites`.`id` ASC LIMIT 1
130153
+ Odania::Menu Load (0.3ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 AND `odania_menus`.`id` = 1 ORDER BY `odania_menus`.`id` ASC LIMIT 1
130154
+ Odania::User Load (0.4ms) SELECT `odania_users`.* FROM `odania_users` WHERE `odania_users`.`name` = 'Admin' AND `odania_users`.`email` = 'mail@example.com' LIMIT 1
130155
+  (0.4ms) SELECT COUNT(*) FROM `odania_user_roles` WHERE `odania_user_roles`.`user_id` = 1
130156
+  (0.3ms) BEGIN
130157
+ SQL (0.5ms) INSERT INTO `odania_user_roles` (`role`, `user_id`) VALUES (1, 1)
130158
+  (1.0ms) COMMIT
130159
+ Odania::UserRole Load (0.5ms) SELECT `odania_user_roles`.* FROM `odania_user_roles` WHERE `odania_user_roles`.`user_id` = 1 AND `odania_user_roles`.`role` = 1 ORDER BY `odania_user_roles`.`id` ASC LIMIT 1
130160
+  (0.6ms) SELECT COUNT(*) FROM `odania_user_roles` WHERE `odania_user_roles`.`user_id` = 1
130161
+ Odania::MenuItem Load (0.8ms) SELECT `odania_menu_items`.* FROM `odania_menu_items` WHERE `odania_menu_items`.`menu_id` = 1 ORDER BY parent_id ASC
130162
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/index.html.erb within layouts/odania_core/admin (25.7ms)
130163
+ Odania::Site Load (0.5ms) SELECT `odania_sites`.* FROM `odania_sites` ORDER BY name ASC
130164
+ Odania::Menu Load (0.4ms) SELECT `odania_menus`.* FROM `odania_menus` WHERE `odania_menus`.`site_id` = 1 ORDER BY title ASC
130165
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (21.6ms)
130166
+ Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.9ms)
130167
+ Completed 200 OK in 466ms (Views: 372.9ms | ActiveRecord: 18.5ms)
130168
+
130169
+
130170
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130171
+
130172
+
130173
+ Started GET "/assets/odania_core_admin/application.css?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130174
+
130175
+
130176
+ Started GET "/assets/odania_core_admin/style.css?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130177
+
130178
+
130179
+ Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130180
+
130181
+
130182
+ Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130183
+
130184
+
130185
+ Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130186
+
130187
+
130188
+ Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130189
+
130190
+
130191
+ Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130192
+
130193
+
130194
+ Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130195
+
130196
+
130197
+ Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130198
+
130199
+
130200
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130201
+
130202
+
130203
+ Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130204
+
130205
+
130206
+ Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130207
+
130208
+
130209
+ Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130210
+
130211
+
130212
+ Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130213
+
130214
+
130215
+ Started GET "/assets/ckeditor/init.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130216
+
130217
+
130218
+ Started GET "/assets/ckeditor/ckeditor.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130219
+
130220
+
130221
+ Started GET "/assets/ckeditor/override.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130222
+
130223
+
130224
+ Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130225
+
130226
+
130227
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:18 +0200
130228
+
130229
+
130230
+ Started GET "/assets/odania_core_admin/application.js?body=1" for 127.0.0.1 at 2014-04-25 22:24:19 +0200
130231
+
130232
+
130233
+ Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2014-04-25 22:24:19 +0200
130234
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations`
130235
+ Migrating to AddSiteIdToUser (20140425202800)
130236
+  (7.4ms) ALTER TABLE `odania_users` ADD `site_id` int(11)
130237
+  (0.3ms) BEGIN
130238
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140425202800')
130239
+  (1.2ms) COMMIT
130240
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`