meta_manager 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/{README.rdoc → README.md} +50 -33
- data/db/migrate/20120105114018_create_meta_tags.rb +7 -7
- data/lib/meta_manager/engine.rb +1 -1
- data/lib/meta_manager/helper.rb +48 -48
- data/lib/meta_manager/model.rb +10 -11
- data/lib/meta_manager/models/active_record/meta_tag.rb +5 -5
- data/lib/meta_manager/taggable.rb +74 -32
- data/lib/meta_manager/version.rb +1 -1
- data/test/dummy/app/controllers/posts_controller.rb +8 -8
- metadata +34 -42
- data/lib/tasks/meta_manager_tasks.rake +0 -4
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -241
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1df37364e9141a3f320a81377dcb956dc1a54b9fcbdc31e87b8ae13b3c0ed153
|
4
|
+
data.tar.gz: 13c7d2687b4125a1815d4c9a09a614e335436ad1145a2f3ad62765f5d7a5499f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bcfe8e26d3aa8c876e039fe5fa7daed6b59d4b10a58cb042592ca16d1b8804ac0444c952c93509cd2ebdf0319b1126513346df93c355ba12aef409730aefbc8
|
7
|
+
data.tar.gz: 5617c6224a11ee099dd6f34bb2cc69b76bd0190e9f1f8c1c59b770f1977cff21fdeae63233b8a2b09fea762d2cad1bc5097a6c468165eb46d7009bf1e55404d2
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,23 +1,30 @@
|
|
1
|
-
|
1
|
+
# MetaManager
|
2
2
|
|
3
3
|
Enable meta tags in your model
|
4
4
|
|
5
|
-
|
5
|
+
## Install
|
6
6
|
|
7
|
+
```
|
7
8
|
gem "meta_manager"
|
8
|
-
|
9
|
-
ActiveRecord:
|
9
|
+
```
|
10
10
|
|
11
|
+
ActiveRecord:
|
12
|
+
|
13
|
+
```
|
11
14
|
require 'meta_manager/orm/active_record'
|
12
15
|
|
13
16
|
rake meta_manager_engine:install:migrations
|
17
|
+
```
|
14
18
|
|
15
19
|
Mongoid:
|
16
20
|
|
21
|
+
```
|
17
22
|
require 'meta_manager/orm/mongoid'
|
23
|
+
```
|
18
24
|
|
19
|
-
|
25
|
+
## Usage
|
20
26
|
|
27
|
+
```ruby
|
21
28
|
class Category < ActiveRecord::Base
|
22
29
|
include MetaManager::Taggable
|
23
30
|
end
|
@@ -26,76 +33,86 @@ Mongoid:
|
|
26
33
|
@category.tag_title = 'category test title'
|
27
34
|
@category.tag_keywords = "Some keywords"
|
28
35
|
@category.tag_description = "Some description"
|
29
|
-
|
36
|
+
|
30
37
|
@category.meta_tags.build(:name => "og:title", :content => 'category og:title')
|
31
|
-
|
32
|
-
# create dynamic meta tags, who will be overwrited the same category tag names
|
38
|
+
|
39
|
+
# create dynamic meta tags, who will be overwrited the same category tag names
|
33
40
|
# only with @meta_dynamic=true in controller
|
34
41
|
@category.meta_tags.build(:name => "og:title", :content => 'dynamic og:title - %{post.title}', :is_dynamic => true)
|
35
42
|
@category.meta_tags.build(:name => "title", :content => '%{post.title} - %{post.notes}', :is_dynamic => true)
|
36
|
-
|
43
|
+
|
37
44
|
@category.save
|
38
|
-
|
45
|
+
|
39
46
|
# create post for dynamic example
|
40
47
|
@post = Post.create(:title => 'post test title', :notes => 'post test notes')
|
41
|
-
|
42
|
-
|
48
|
+
```
|
49
|
+
|
50
|
+
## Rendering example
|
43
51
|
|
44
52
|
At layouts/application.html.erb
|
45
53
|
|
54
|
+
```html
|
46
55
|
<head>
|
47
56
|
<%= raw(render_meta_tags(@category)) %>
|
48
57
|
<title><%= render_page_title(@category) %></title>
|
49
|
-
|
58
|
+
```
|
59
|
+
|
50
60
|
At controllers/posts_controller.rb
|
51
61
|
|
52
|
-
|
53
|
-
|
54
|
-
|
62
|
+
```ruby
|
63
|
+
before_action :find_category
|
64
|
+
before_action :prepare_dynamic_page, :only => [:show]
|
65
|
+
|
55
66
|
def index
|
56
67
|
@posts = Post.order('id')
|
57
68
|
respond_with(@posts)
|
58
69
|
end
|
59
|
-
|
70
|
+
|
60
71
|
def show
|
61
72
|
@post = Post.find(params[:id])
|
62
73
|
respond_with(@post)
|
63
74
|
end
|
64
|
-
|
75
|
+
|
65
76
|
protected
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
+
|
78
|
+
def find_category
|
79
|
+
@category = Category.first
|
80
|
+
end
|
81
|
+
|
82
|
+
# set @meta_dynamic true to turn on dymanic meta tags.
|
83
|
+
def prepare_dynamic_page
|
84
|
+
@meta_dynamic = true
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
It will be generate meta tags and title for @category.
|
77
89
|
In action show we wont to generate dynamic meta tags from instance @post.
|
78
90
|
It means that meta tag 'og:title' and tag 'title' will be overwrited with attributes from instance @post.
|
79
91
|
|
80
|
-
|
92
|
+
### Results
|
81
93
|
|
82
94
|
Action index:
|
83
95
|
|
96
|
+
```html
|
84
97
|
<meta content='Some keywords' name='keywords' />
|
85
98
|
<meta content='Some description' name='description' />
|
86
99
|
<meta content='category og:title' property='og:title' />
|
87
100
|
<title>category test title</title>
|
88
|
-
|
101
|
+
```
|
102
|
+
|
89
103
|
Action show:
|
90
104
|
|
105
|
+
```html
|
91
106
|
<meta content='Some keywords' name='keywords' />
|
92
107
|
<meta content='Some description' name='description' />
|
93
108
|
<meta content='dynamic og:title - post test title' property='og:title' />
|
94
109
|
<title>post test title - post test notes</title>
|
110
|
+
```
|
95
111
|
|
112
|
+
## Test
|
96
113
|
|
97
|
-
|
98
|
-
|
114
|
+
```
|
99
115
|
rake test
|
116
|
+
```
|
100
117
|
|
101
118
|
Copyright (c) 2012 Fodojo, released under the MIT license
|
@@ -1,16 +1,16 @@
|
|
1
1
|
class CreateMetaTags < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
3
|
create_table :meta_tags do |t|
|
4
|
-
t.string :name, :
|
4
|
+
t.string :name, limit: 64, null: false
|
5
5
|
t.text :content
|
6
|
-
t.boolean :is_dynamic, :
|
7
|
-
|
8
|
-
t.integer :taggable_id, :
|
9
|
-
t.string :taggable_type, :
|
10
|
-
|
6
|
+
t.boolean :is_dynamic, default: false
|
7
|
+
|
8
|
+
t.integer :taggable_id, null: false
|
9
|
+
t.string :taggable_type, limit: 64, null: false
|
10
|
+
|
11
11
|
t.timestamps
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
add_index :meta_tags, :name
|
15
15
|
add_index :meta_tags, [:taggable_type, :taggable_id]
|
16
16
|
end
|
data/lib/meta_manager/engine.rb
CHANGED
@@ -3,7 +3,7 @@ require 'meta_manager'
|
|
3
3
|
|
4
4
|
module MetaManager #:nodoc:
|
5
5
|
class Engine < ::Rails::Engine #:nodoc:
|
6
|
-
initializer
|
6
|
+
initializer 'meta_manager.setup' do
|
7
7
|
ActiveSupport.on_load :action_controller do
|
8
8
|
ActionController::Base.send :include, MetaManager::Helper
|
9
9
|
end
|
data/lib/meta_manager/helper.rb
CHANGED
@@ -1,77 +1,77 @@
|
|
1
1
|
module MetaManager
|
2
2
|
module Helper
|
3
3
|
include ::ActionView::Helpers::TagHelper
|
4
|
-
|
4
|
+
|
5
5
|
def self.included(base)
|
6
6
|
base.send :helper_method, :render_meta_tags, :render_page_title
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
def render_meta_tags(record)
|
10
10
|
return if record.nil?
|
11
|
-
|
11
|
+
|
12
12
|
dynamic = self.instance_variable_get("@meta_dynamic")
|
13
13
|
tags = []
|
14
|
-
|
14
|
+
|
15
15
|
get_actual_meta_tags(record, dynamic).each do |meta_tag|
|
16
16
|
unless meta_tag.name == 'title'
|
17
17
|
type = meta_tag.name =~ /og:/ ? 'property' : 'name'
|
18
18
|
tags << tag(:meta, type => meta_tag.name, :content => render_meta_tag_content(meta_tag))
|
19
19
|
end
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
tags.join("\n\s\s")
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def render_page_title(record=nil, options = {})
|
26
26
|
dynamic = self.instance_variable_get("@meta_dynamic")
|
27
|
-
|
28
|
-
meta_tags = get_actual_meta_tags(record, dynamic)
|
27
|
+
|
28
|
+
meta_tags = get_actual_meta_tags(record, dynamic)
|
29
29
|
meta_tags.detect{|t| t.name == 'title'}.try(:get_content, self) || get_page_title(record, options)
|
30
30
|
end
|
31
31
|
|
32
32
|
protected
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
34
|
+
# Call render_meta_tag_content_description if method exists
|
35
|
+
# Controller:
|
36
|
+
# protected
|
37
|
+
#
|
38
|
+
# def render_meta_tag_content_description(meta_tag)
|
39
|
+
# if !params[:page].blank? && params[:page] != '1'
|
40
|
+
# meta_tag.content += " - page #{params[:page].to_i}"
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
#
|
44
|
+
def render_meta_tag_content(meta_tag)
|
45
|
+
method_name = "render_meta_tag_content_#{meta_tag.name}".to_sym
|
46
|
+
send(method_name, meta_tag) if respond_to?(method_name, true)
|
47
|
+
|
48
|
+
meta_tag.get_content(self)
|
49
|
+
end
|
50
|
+
|
51
51
|
private
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
end
|
73
|
-
|
74
|
-
meta_tags.compact
|
52
|
+
|
53
|
+
def get_page_title(record, options)
|
54
|
+
options = { :spliter => ' - ', :append_title => true }.merge(options)
|
55
|
+
|
56
|
+
view_title = record.respond_to?(:title) ? record.title : (record.respond_to?(:name) ? record.name : nil) unless record.nil?
|
57
|
+
|
58
|
+
page_title = []
|
59
|
+
page_title << options[:title] if options.key?(:title)
|
60
|
+
page_title << view_title unless record.nil?
|
61
|
+
page_title << I18n.t("page.title") if options[:append_title]
|
62
|
+
|
63
|
+
page_title.flatten.compact.uniq.join(options[:spliter])
|
64
|
+
end
|
65
|
+
|
66
|
+
def get_actual_meta_tags(record, dynamic)
|
67
|
+
meta_tags = []
|
68
|
+
_meta_tags = record && record.respond_to?(:meta_tags) ? record.meta_tags : []
|
69
|
+
|
70
|
+
_meta_tags.group_by(&:name).each do |name, items|
|
71
|
+
meta_tags << (items.detect{|r| r.is_dynamic && dynamic} || items.detect{|r| !r.is_dynamic})
|
75
72
|
end
|
73
|
+
|
74
|
+
meta_tags.compact
|
75
|
+
end
|
76
76
|
end
|
77
77
|
end
|
data/lib/meta_manager/model.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
module MetaManager
|
2
2
|
module Model
|
3
3
|
extend ::ActiveSupport::Concern
|
4
|
-
|
5
|
-
included do
|
6
|
-
validates_presence_of :name, :taggable_type
|
7
|
-
validates_uniqueness_of :name, :
|
8
|
-
|
9
|
-
#attr_accessible :name, :content, :is_dynamic
|
4
|
+
|
5
|
+
included do
|
6
|
+
validates_presence_of :name, :taggable_type
|
7
|
+
validates_uniqueness_of :name, scope: %i[taggable_type taggable_id is_dynamic]
|
8
|
+
validates :content, length: { maximum: 4000 }
|
10
9
|
end
|
11
|
-
|
12
|
-
def get_content(controller=nil)
|
13
|
-
|
10
|
+
|
11
|
+
def get_content(controller = nil)
|
12
|
+
is_dynamic ? dynamic_content(controller) : content
|
14
13
|
end
|
15
|
-
|
14
|
+
|
16
15
|
def dynamic_content(controller)
|
17
|
-
|
16
|
+
content.gsub /%{([\w\.]+)}/ do
|
18
17
|
items = $1.split('.')
|
19
18
|
instance_name = items.shift
|
20
19
|
method_name = items.join('.')
|
@@ -1,8 +1,8 @@
|
|
1
1
|
class MetaTag < ::ActiveRecord::Base
|
2
2
|
include MetaManager::Model
|
3
3
|
|
4
|
-
belongs_to :taggable, :
|
5
|
-
|
6
|
-
validates_presence_of :name, :taggable_type
|
7
|
-
validates_uniqueness_of :name, :
|
8
|
-
end
|
4
|
+
belongs_to :taggable, polymorphic: true
|
5
|
+
|
6
|
+
validates_presence_of :name, :taggable_type
|
7
|
+
validates_uniqueness_of :name, scope: %i[taggable_type taggable_id is_dynamic]
|
8
|
+
end
|
@@ -2,21 +2,39 @@ module MetaManager
|
|
2
2
|
module Taggable
|
3
3
|
extend ::ActiveSupport::Concern
|
4
4
|
|
5
|
-
included do
|
6
|
-
has_many :meta_tags, :
|
5
|
+
included do |base|
|
6
|
+
has_many :meta_tags, as: :taggable, dependent: :destroy, autosave: true
|
7
7
|
|
8
|
-
accepts_nested_attributes_for :meta_tags, :
|
8
|
+
accepts_nested_attributes_for :meta_tags, reject_if: proc { |tag| tag['content'].nil? }, allow_destroy: true
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
base.prepend Extension
|
11
|
+
end
|
12
|
+
|
13
|
+
# some required extentions
|
14
|
+
module Extension
|
15
|
+
def respond_to_missing?(method_sym, include_all = false)
|
16
|
+
return true if method_sym.to_s =~ meta_match_case
|
17
|
+
|
18
|
+
super
|
19
|
+
end
|
20
|
+
|
21
|
+
def method_missing(method_sym, *args)
|
22
|
+
key = method_sym.to_s
|
23
|
+
return read_or_update(key, args.first) if key =~ meta_match_case
|
24
|
+
|
25
|
+
super
|
26
|
+
end
|
12
27
|
end
|
13
28
|
|
14
29
|
# Save meta tags records into one hash
|
15
|
-
def meta_tag(attr_name, options={})
|
30
|
+
def meta_tag(attr_name, options = {})
|
16
31
|
key = normalize_meta_tag_name(attr_name)
|
17
32
|
|
18
|
-
|
19
|
-
|
33
|
+
key = localized_key(key)
|
34
|
+
|
35
|
+
cached_meta_tags[key] ||= find_meta(key, options[:fallback])
|
36
|
+
cached_meta_tags[key] ||= meta_tags.build(name: key) if options[:build]
|
37
|
+
|
20
38
|
cached_meta_tags[key]
|
21
39
|
end
|
22
40
|
|
@@ -24,36 +42,60 @@ module MetaManager
|
|
24
42
|
@cached_meta_tags ||= {}
|
25
43
|
end
|
26
44
|
|
27
|
-
|
28
|
-
|
29
|
-
|
45
|
+
private
|
46
|
+
|
47
|
+
def find_meta(key, fallback = false)
|
48
|
+
found = meta_tags.detect { |t| t.name == key }
|
49
|
+
return found unless fallback
|
50
|
+
|
51
|
+
fallback_keys(key).each do |alter_key|
|
52
|
+
found ||= meta_tags.detect { |t| t.name == alter_key } if fallback
|
53
|
+
|
54
|
+
break if found
|
55
|
+
end
|
56
|
+
|
57
|
+
found
|
30
58
|
end
|
31
59
|
|
32
|
-
|
60
|
+
def fallback_keys(key)
|
61
|
+
pure_key = key.gsub(/_(#{I18n.available_locales.join('|')})$/, '')
|
62
|
+
[
|
63
|
+
key,
|
64
|
+
"#{pure_key}_#{I18n.default_locale}",
|
65
|
+
pure_key
|
66
|
+
].compact
|
67
|
+
end
|
33
68
|
|
34
|
-
|
35
|
-
|
69
|
+
def read_or_update(key, value = nil)
|
70
|
+
attr_name = key.gsub(meta_match_case, '')
|
71
|
+
return find_tag_content(attr_name) if value.nil? || key =~ /[^=]$/
|
36
72
|
|
37
|
-
|
38
|
-
|
73
|
+
record = meta_tag(attr_name, build: value.present?, fallback: value.blank?)
|
74
|
+
return if record.blank?
|
75
|
+
return record.delete if value.blank?
|
39
76
|
|
40
|
-
|
41
|
-
|
42
|
-
record.content = args.first
|
43
|
-
else
|
44
|
-
meta_tag(attr_name).try(:content)
|
45
|
-
end
|
46
|
-
else
|
47
|
-
return method_missing_without_tags(method_name, *args)
|
48
|
-
end
|
49
|
-
end
|
77
|
+
record.content = value
|
78
|
+
end
|
50
79
|
|
51
|
-
|
52
|
-
|
53
|
-
|
80
|
+
def normalize_meta_tag_name(value)
|
81
|
+
value.to_s.downcase.strip.gsub('_before_type_cast', '').gsub(/=$/, '')
|
82
|
+
end
|
54
83
|
|
55
|
-
|
56
|
-
|
57
|
-
|
84
|
+
def meta_match_case
|
85
|
+
/^tag_/
|
86
|
+
end
|
87
|
+
|
88
|
+
def localized_meta_key_case
|
89
|
+
/^(.+?)(?:_(#{I18n.available_locales.join('|')}))?$/
|
90
|
+
end
|
91
|
+
|
92
|
+
def localized_key(key)
|
93
|
+
key, locale = localized_meta_key_case.match(key)[1..2]
|
94
|
+
[key, locale || I18n.locale].join('_')
|
95
|
+
end
|
96
|
+
|
97
|
+
def find_tag_content(attr_name)
|
98
|
+
meta_tag(attr_name, fallback: true).try(:content)
|
99
|
+
end
|
58
100
|
end
|
59
101
|
end
|
data/lib/meta_manager/version.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
class PostsController < ApplicationController
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
before_action :find_category
|
3
|
+
before_action :prepare_dynamic_page, :only => [:show]
|
4
|
+
|
5
5
|
def index
|
6
6
|
@posts = Post.order('id')
|
7
7
|
respond_with(@posts)
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def show
|
11
11
|
@post = Post.find(params[:id])
|
12
12
|
respond_with(@post)
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
protected
|
16
|
-
|
16
|
+
|
17
17
|
def find_category
|
18
18
|
@category = Category.first
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def prepare_dynamic_page
|
22
22
|
@meta_dynamic = true
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Galeta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -53,33 +53,33 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.1.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 3.1.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '0'
|
83
83
|
description: Aimbulance CMS
|
84
84
|
email:
|
85
85
|
- superp1987@gmail.com
|
@@ -88,7 +88,7 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- MIT-LICENSE
|
91
|
-
- README.
|
91
|
+
- README.md
|
92
92
|
- Rakefile
|
93
93
|
- db/migrate/20120105114018_create_meta_tags.rb
|
94
94
|
- lib/meta_manager.rb
|
@@ -101,7 +101,6 @@ files:
|
|
101
101
|
- lib/meta_manager/orm/mongoid.rb
|
102
102
|
- lib/meta_manager/taggable.rb
|
103
103
|
- lib/meta_manager/version.rb
|
104
|
-
- lib/tasks/meta_manager_tasks.rake
|
105
104
|
- test/controllers/posts_controller_test.rb
|
106
105
|
- test/controllers/welcome_controller_test.rb
|
107
106
|
- test/dummy/Rakefile
|
@@ -120,7 +119,6 @@ files:
|
|
120
119
|
- test/dummy/config.ru
|
121
120
|
- test/dummy/config/application.rb
|
122
121
|
- test/dummy/config/boot.rb
|
123
|
-
- test/dummy/config/database.yml
|
124
122
|
- test/dummy/config/environment.rb
|
125
123
|
- test/dummy/config/environments/development.rb
|
126
124
|
- test/dummy/config/environments/production.rb
|
@@ -136,8 +134,6 @@ files:
|
|
136
134
|
- test/dummy/config/routes.rb
|
137
135
|
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
138
136
|
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
139
|
-
- test/dummy/db/test.sqlite3
|
140
|
-
- test/dummy/log/test.log
|
141
137
|
- test/dummy/public/404.html
|
142
138
|
- test/dummy/public/422.html
|
143
139
|
- test/dummy/public/500.html
|
@@ -166,54 +162,50 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
162
|
version: '0'
|
167
163
|
requirements: []
|
168
164
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.7.6.2
|
170
166
|
signing_key:
|
171
167
|
specification_version: 4
|
172
168
|
summary: Head meta tags manager for models.
|
173
169
|
test_files:
|
174
|
-
- test/controllers/posts_controller_test.rb
|
175
170
|
- test/controllers/welcome_controller_test.rb
|
176
|
-
- test/
|
177
|
-
- test/
|
171
|
+
- test/controllers/posts_controller_test.rb
|
172
|
+
- test/test_helper.rb
|
173
|
+
- test/meta_manager_test.rb
|
174
|
+
- test/dummy/app/views/welcome/index.html.erb
|
175
|
+
- test/dummy/app/views/posts/index.html.erb
|
176
|
+
- test/dummy/app/views/posts/show.html.erb
|
177
|
+
- test/dummy/app/views/layouts/application.html.erb
|
178
|
+
- test/dummy/app/helpers/application_helper.rb
|
178
179
|
- test/dummy/app/controllers/application_controller.rb
|
179
180
|
- test/dummy/app/controllers/posts_controller.rb
|
180
181
|
- test/dummy/app/controllers/welcome_controller.rb
|
181
|
-
- test/dummy/app/
|
182
|
-
- test/dummy/app/
|
182
|
+
- test/dummy/app/assets/javascripts/application.js
|
183
|
+
- test/dummy/app/assets/stylesheets/application.css
|
183
184
|
- test/dummy/app/models/post.rb
|
184
|
-
- test/dummy/app/
|
185
|
-
- test/dummy/
|
186
|
-
- test/dummy/
|
187
|
-
- test/dummy/
|
185
|
+
- test/dummy/app/models/category.rb
|
186
|
+
- test/dummy/public/500.html
|
187
|
+
- test/dummy/public/422.html
|
188
|
+
- test/dummy/public/404.html
|
189
|
+
- test/dummy/public/favicon.ico
|
190
|
+
- test/dummy/Rakefile
|
188
191
|
- test/dummy/config/application.rb
|
189
192
|
- test/dummy/config/boot.rb
|
190
|
-
- test/dummy/config/
|
193
|
+
- test/dummy/config/initializers/secret_token.rb
|
194
|
+
- test/dummy/config/initializers/meta_manager.rb
|
195
|
+
- test/dummy/config/initializers/inflections.rb
|
196
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
197
|
+
- test/dummy/config/initializers/session_store.rb
|
198
|
+
- test/dummy/config/initializers/mime_types.rb
|
199
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
191
200
|
- test/dummy/config/environment.rb
|
192
201
|
- test/dummy/config/environments/development.rb
|
193
202
|
- test/dummy/config/environments/production.rb
|
194
203
|
- test/dummy/config/environments/test.rb
|
195
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
196
|
-
- test/dummy/config/initializers/inflections.rb
|
197
|
-
- test/dummy/config/initializers/meta_manager.rb
|
198
|
-
- test/dummy/config/initializers/mime_types.rb
|
199
|
-
- test/dummy/config/initializers/secret_token.rb
|
200
|
-
- test/dummy/config/initializers/session_store.rb
|
201
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
202
204
|
- test/dummy/config/locales/en.yml
|
203
205
|
- test/dummy/config/routes.rb
|
204
|
-
- test/dummy/config.ru
|
205
206
|
- test/dummy/db/migrate/20111226131910_create_categories.rb
|
206
207
|
- test/dummy/db/migrate/20111226131911_create_posts.rb
|
207
|
-
- test/dummy/
|
208
|
-
- test/dummy/log/test.log
|
209
|
-
- test/dummy/public/404.html
|
210
|
-
- test/dummy/public/422.html
|
211
|
-
- test/dummy/public/500.html
|
212
|
-
- test/dummy/public/favicon.ico
|
213
|
-
- test/dummy/Rakefile
|
208
|
+
- test/dummy/config.ru
|
214
209
|
- test/dummy/script/rails
|
215
|
-
- test/meta_manager_test.rb
|
216
210
|
- test/models/category_test.rb
|
217
211
|
- test/models/meta_tag_test.rb
|
218
|
-
- test/test_helper.rb
|
219
|
-
has_rdoc:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
development:
|
4
|
-
adapter: sqlite3
|
5
|
-
database: db/development.sqlite3
|
6
|
-
pool: 5
|
7
|
-
timeout: 5000
|
8
|
-
|
9
|
-
# Warning: The database defined as "test" will be erased and
|
10
|
-
# re-generated from your development database when you run "rake".
|
11
|
-
# Do not set this db to the same as development or production.
|
12
|
-
test:
|
13
|
-
adapter: sqlite3
|
14
|
-
database: db/test.sqlite3
|
15
|
-
pool: 5
|
16
|
-
timeout: 5000
|
17
|
-
|
18
|
-
production:
|
19
|
-
adapter: sqlite3
|
20
|
-
database: db/production.sqlite3
|
21
|
-
pool: 5
|
22
|
-
timeout: 5000
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
data/test/dummy/log/test.log
DELETED
@@ -1,241 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
|
-
Connecting to database specified by database.yml
|
4
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
-
[1m[35m (9.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
7
|
-
[1m[35m (3.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
8
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
9
|
-
Migrating to CreateMetaTags (20120105114018)
|
10
|
-
[1m[35m (0.1ms)[0m begin transaction
|
11
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "meta_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(50) NOT NULL, "content" text, "is_dynamic" boolean DEFAULT 'f', "taggable_id" integer NOT NULL, "taggable_type" varchar(50) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
12
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("meta_tags")
|
13
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_meta_tags_on_name" ON "meta_tags" ("name")[0m
|
14
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("meta_tags")
|
15
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_meta_tags_on_name')[0m
|
16
|
-
[1m[35m (0.2ms)[0m CREATE INDEX "index_meta_tags_on_taggable_type_and_taggable_id" ON "meta_tags" ("taggable_type", "taggable_id")
|
17
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120105114018')[0m
|
18
|
-
[1m[35m (4.7ms)[0m commit transaction
|
19
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
20
|
-
Migrating to CreateCategories (20111226131910)
|
21
|
-
[1m[35m (0.1ms)[0m begin transaction
|
22
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
23
|
-
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111226131910')
|
24
|
-
[1m[36m (6.0ms)[0m [1mcommit transaction[0m
|
25
|
-
Migrating to CreatePosts (20111226131911)
|
26
|
-
[1m[35m (0.1ms)[0m begin transaction
|
27
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "notes" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
28
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111226131911')
|
29
|
-
[1m[36m (12.5ms)[0m [1mcommit transaction[0m
|
30
|
-
[1m[35m (0.1ms)[0m begin transaction
|
31
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32
|
-
[1m[35m (0.1ms)[0m begin transaction
|
33
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34
|
-
[1m[35mMetaTag Exists (0.3ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
35
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
36
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
37
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
38
|
-
[1m[35mSQL (1.8ms)[0m INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
39
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "title content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
40
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "keywords content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "keywords"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
41
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
42
|
-
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]]
|
43
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
44
|
-
[1m[35m (0.1ms)[0m begin transaction
|
45
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
46
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
47
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
48
|
-
[1m[35mCategory Load (0.1ms)[0m SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]]
|
49
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'[0m
|
50
|
-
[1m[35mMetaTag Load (0.1ms)[0m SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
|
51
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
52
|
-
[1m[35m (0.1ms)[0m begin transaction
|
53
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54
|
-
[1m[35m (0.0ms)[0m begin transaction
|
55
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "meta_tags" [0m
|
56
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
57
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
58
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
59
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
60
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "title content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
61
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "meta_tags"
|
63
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
64
|
-
[1m[35m (0.0ms)[0m begin transaction
|
65
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
66
|
-
[1m[35m (0.1ms)[0m begin transaction
|
67
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
68
|
-
[1m[35m (0.0ms)[0m begin transaction
|
69
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70
|
-
[1m[35m (0.1ms)[0m begin transaction
|
71
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
72
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "some content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "test"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
73
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
74
|
-
[1m[35mMetaTag Exists (0.2ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
75
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
76
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
77
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
78
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
79
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "some content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "test"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
80
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
81
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 2 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
82
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 2 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
83
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
84
|
-
[1m[35m (0.1ms)[0m begin transaction
|
85
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
-
[1m[35mMetaTag Exists (0.2ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'somename' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
87
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'somename' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
88
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "some content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "somename"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
89
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
90
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
91
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
92
|
-
[1m[35mMetaTag Exists (0.3ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" IS NULL AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
93
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" IS NULL AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
94
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
95
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
96
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
97
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "some content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "test"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
98
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
99
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
100
|
-
[1m[35mMetaTag Exists (0.2ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'test' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
101
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
102
|
-
[1m[35m (0.1ms)[0m begin transaction
|
103
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
104
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "some content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "somename"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
105
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
106
|
-
[1m[35mMetaTag Exists (0.2ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'somename' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
107
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'somename' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" = 1 AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
108
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
109
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
110
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
111
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
112
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
113
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
115
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
116
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
117
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
118
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
119
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
120
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
121
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
122
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
123
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
124
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
125
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
126
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
127
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
128
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
129
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "test, keywords"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "keywords"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
130
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test description"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "description"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
131
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "category og:title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
132
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "title %{post.title}, content %{post.content}, notes %{post.notes}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
133
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "dynamic og:title - %{post.title}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
134
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
135
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
136
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "posts" ("content", "created_at", "notes", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "test_content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["notes", "test_notes"], ["title", "test_title"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
137
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138
|
-
Processing by PostsController#index as HTML
|
139
|
-
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" LIMIT 1
|
140
|
-
Rendered posts/index.html.erb within layouts/application (3.0ms)
|
141
|
-
[1m[36mMetaTag Load (0.3ms)[0m [1mSELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'[0m
|
142
|
-
Completed 200 OK in 106ms (Views: 103.7ms | ActiveRecord: 0.5ms)
|
143
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
144
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
145
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
146
|
-
[1m[36mMetaTag Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
147
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
148
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
149
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
150
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
151
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
152
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
153
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
154
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
155
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
156
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
157
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
158
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
159
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
160
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "test, keywords"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "keywords"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
161
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test description"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "description"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
162
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "category og:title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
163
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "title %{post.title}, content %{post.content}, notes %{post.notes}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
164
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "dynamic og:title - %{post.title}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
165
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
166
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("content", "created_at", "notes", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "test_content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["notes", "test_notes"], ["title", "test_title"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
168
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
-
Processing by PostsController#show as HTML
|
170
|
-
Parameters: {"id"=>"1"}
|
171
|
-
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" LIMIT 1
|
172
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
173
|
-
[1m[35mMetaTag Load (0.3ms)[0m SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
|
174
|
-
Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.6ms)
|
175
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
176
|
-
[1m[35m (0.1ms)[0m begin transaction
|
177
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
178
|
-
[1m[35mMetaTag Exists (0.2ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
179
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
180
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
181
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
182
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
183
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
184
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
185
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
186
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
187
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
188
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
189
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
190
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
191
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "test title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
192
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test, keywords"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "keywords"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
193
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "test description"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "description"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
194
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "category og:title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
195
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "title %{post.title}, content %{post.content}, notes %{post.notes}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
196
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "dynamic og:title - %{post.title}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
197
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
198
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
199
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("content", "created_at", "notes", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "test_content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["notes", "test_notes"], ["title", "test_title"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
200
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
201
|
-
Processing by PostsController#show as HTML
|
202
|
-
Parameters: {"id"=>"1"}
|
203
|
-
[1m[36mCategory Load (0.2ms)[0m [1mSELECT "categories".* FROM "categories" LIMIT 1[0m
|
204
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
|
205
|
-
[1m[36mMetaTag Load (0.2ms)[0m [1mSELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'[0m
|
206
|
-
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms)
|
207
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
208
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210
|
-
[1m[36mMetaTag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
211
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
212
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
213
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'keywords' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
214
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
215
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'description' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
216
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1[0m
|
217
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 'f') LIMIT 1
|
218
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
219
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
220
|
-
[1m[36mMetaTag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1[0m
|
221
|
-
[1m[35mMetaTag Exists (0.1ms)[0m SELECT 1 AS one FROM "meta_tags" WHERE ("meta_tags"."name" = 'og:title' AND "meta_tags"."taggable_type" = 'Category' AND "meta_tags"."taggable_id" IS NULL AND "meta_tags"."is_dynamic" = 't') LIMIT 1
|
222
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "categories" ("created_at", "title", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["title", "Test category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
223
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
224
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "test, keywords"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "keywords"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
225
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "test description"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "description"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
226
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "category og:title"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", false], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
227
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["content", "title %{post.title}, content %{post.content}, notes %{post.notes}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
228
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "meta_tags" ("content", "created_at", "is_dynamic", "name", "taggable_id", "taggable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "dynamic og:title - %{post.title}"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["is_dynamic", true], ["name", "og:title"], ["taggable_id", 1], ["taggable_type", "Category"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
229
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("content", "created_at", "notes", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "test_content"], ["created_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00], ["notes", "test_notes"], ["title", "test_title"], ["updated_at", Sat, 05 Jan 2013 21:59:37 UTC +00:00]]
|
232
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
233
|
-
Processing by PostsController#index as HTML
|
234
|
-
[1m[35mCategory Load (0.2ms)[0m SELECT "categories".* FROM "categories" LIMIT 1
|
235
|
-
[1m[36mMetaTag Load (0.2ms)[0m [1mSELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'[0m
|
236
|
-
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
|
237
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
238
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239
|
-
Processing by WelcomeController#index as HTML
|
240
|
-
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
241
|
-
[1m[35m (0.1ms)[0m rollback transaction
|