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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 419562a536239133d474b71e3aafa19d50a9073d
4
- data.tar.gz: 412be83ee94a87915a82e3e6216b4f48482e24ae
2
+ SHA256:
3
+ metadata.gz: 1df37364e9141a3f320a81377dcb956dc1a54b9fcbdc31e87b8ae13b3c0ed153
4
+ data.tar.gz: 13c7d2687b4125a1815d4c9a09a614e335436ad1145a2f3ad62765f5d7a5499f
5
5
  SHA512:
6
- metadata.gz: 0f8c7998821a4764e20e1f83d3c0892d4f288832f7ea800f6c1dde5f398e22f3a494c2543694cd326a7f30740f2191c3507ff5c436ec204f2063d0e47b538df3
7
- data.tar.gz: 30ba5960694e4c7e9316fd09686076085220da16a73e2957542ad9a9f9397e654b17e49227410b72307b86e98402f45620011ccabd95935fac12ddea8d4140bc
6
+ metadata.gz: 8bcfe8e26d3aa8c876e039fe5fa7daed6b59d4b10a58cb042592ca16d1b8804ac0444c952c93509cd2ebdf0319b1126513346df93c355ba12aef409730aefbc8
7
+ data.tar.gz: 5617c6224a11ee099dd6f34bb2cc69b76bd0190e9f1f8c1c59b770f1977cff21fdeae63233b8a2b09fea762d2cad1bc5097a6c468165eb46d7009bf1e55404d2
@@ -1,23 +1,30 @@
1
- = MetaManager
1
+ # MetaManager
2
2
 
3
3
  Enable meta tags in your model
4
4
 
5
- == Install
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
- == Usage
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
- == Rendering example
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
- before_filter :find_category
53
- before_filter :prepare_dynamic_page, :only => [:show]
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
- def find_category
68
- @category = Category.first
69
- end
70
-
71
- # set @meta_dynamic true to turn on dymanic meta tags.
72
- def prepare_dynamic_page
73
- @meta_dynamic = true
74
- end
75
-
76
- It will be generate meta tags and title for @category.
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
- === Results
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
- == Test
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, :limit => 50, :null => false
4
+ t.string :name, limit: 64, null: false
5
5
  t.text :content
6
- t.boolean :is_dynamic, :default => false
7
-
8
- t.integer :taggable_id, :null => false
9
- t.string :taggable_type, :limit => 50, :null => false
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
@@ -3,7 +3,7 @@ require 'meta_manager'
3
3
 
4
4
  module MetaManager #:nodoc:
5
5
  class Engine < ::Rails::Engine #:nodoc:
6
- initializer "meta_manager.setup" do
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
@@ -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
- # 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
-
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
- 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})
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
@@ -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, :content
7
- validates_uniqueness_of :name, :scope => [:taggable_type, :taggable_id, :is_dynamic]
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
- self.is_dynamic ? dynamic_content(controller) : self.content
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
- self.content.gsub /%{([\w\.]+)}/ do
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, :polymorphic => true
5
-
6
- validates_presence_of :name, :taggable_type, :content
7
- validates_uniqueness_of :name, :scope => [:taggable_type, :taggable_id, :is_dynamic]
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, :as => :taggable, :dependent => :destroy, :autosave => true
5
+ included do |base|
6
+ has_many :meta_tags, as: :taggable, dependent: :destroy, autosave: true
7
7
 
8
- accepts_nested_attributes_for :meta_tags, :reject_if => proc { |tag| tag['content'].blank? }, :allow_destroy => true
8
+ accepts_nested_attributes_for :meta_tags, reject_if: proc { |tag| tag['content'].nil? }, allow_destroy: true
9
9
 
10
- alias_method_chain :respond_to?, :tags
11
- alias_method_chain :method_missing, :tags
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
- cached_meta_tags[key] ||= self.meta_tags.detect {|t| t.name == key}
19
- cached_meta_tags[key] ||= self.meta_tags.build(:name => key) if options[:build]
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
- def respond_to_with_tags?(method_sym, include_all = false)
28
- return true if method_sym.to_s =~ meta_match_case
29
- respond_to_without_tags?(method_sym, include_all)
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
- protected
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
- def method_missing_with_tags(method_name, *args)
35
- key = method_name.to_s
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
- if key =~ meta_match_case
38
- attr_name = key.gsub(meta_match_case, '')
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
- if key =~ /=$/ && !args.first.blank?
41
- record = meta_tag(attr_name, :build => true)
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
- def normalize_meta_tag_name(value)
52
- value.to_s.downcase.strip.gsub("_before_type_cast", '').gsub(/=$/, '')
53
- end
80
+ def normalize_meta_tag_name(value)
81
+ value.to_s.downcase.strip.gsub('_before_type_cast', '').gsub(/=$/, '')
82
+ end
54
83
 
55
- def meta_match_case
56
- /^tag_/
57
- end
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
@@ -1,3 +1,3 @@
1
1
  module MetaManager
2
- VERSION = "0.2.3"
2
+ VERSION = '0.3.0'
3
3
  end
@@ -1,25 +1,25 @@
1
1
  class PostsController < ApplicationController
2
- before_filter :find_category
3
- before_filter :prepare_dynamic_page, :only => [:show]
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.2.3
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: 2016-05-25 00:00:00.000000000 Z
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: sqlite3
56
+ name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
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: '0'
68
+ version: 3.1.3
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails
70
+ name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 3.1.3
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: 3.1.3
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.rdoc
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.4.5
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/dummy/app/assets/javascripts/application.js
177
- - test/dummy/app/assets/stylesheets/application.css
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/helpers/application_helper.rb
182
- - test/dummy/app/models/category.rb
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/views/layouts/application.html.erb
185
- - test/dummy/app/views/posts/index.html.erb
186
- - test/dummy/app/views/posts/show.html.erb
187
- - test/dummy/app/views/welcome/index.html.erb
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/database.yml
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/db/test.sqlite3
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,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :meta_manager do
3
- # # Task goes here
4
- # end
@@ -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
Binary file
@@ -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
-  (0.2ms) select sqlite_version(*)
5
-  (9.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
-  (0.1ms) PRAGMA index_list("schema_migrations")
7
-  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9
- Migrating to CreateMetaTags (20120105114018)
10
-  (0.1ms) begin transaction
11
-  (0.8ms) CREATE 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) 
12
-  (0.1ms) PRAGMA index_list("meta_tags")
13
-  (0.2ms) CREATE INDEX "index_meta_tags_on_name" ON "meta_tags" ("name")
14
-  (0.1ms) PRAGMA index_list("meta_tags")
15
-  (0.1ms) PRAGMA index_info('index_meta_tags_on_name')
16
-  (0.2ms) CREATE INDEX "index_meta_tags_on_taggable_type_and_taggable_id" ON "meta_tags" ("taggable_type", "taggable_id")
17
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120105114018')
18
-  (4.7ms) commit transaction
19
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
20
- Migrating to CreateCategories (20111226131910)
21
-  (0.1ms) begin transaction
22
-  (1.1ms) CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
23
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111226131910')
24
-  (6.0ms) commit transaction
25
- Migrating to CreatePosts (20111226131911)
26
-  (0.1ms) begin transaction
27
-  (0.5ms) CREATE 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) 
28
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111226131911')
29
-  (12.5ms) commit transaction
30
-  (0.1ms) begin transaction
31
-  (0.1ms) rollback transaction
32
-  (0.1ms) begin transaction
33
-  (0.1ms) SAVEPOINT active_record_1
34
- MetaTag Exists (0.3ms) 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
- MetaTag Exists (0.2ms) 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
36
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
38
- SQL (1.8ms) 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
- SQL (0.5ms) 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]]
40
- SQL (0.2ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
42
- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]]
43
-  (0.3ms) rollback transaction
44
-  (0.1ms) begin transaction
45
-  (0.0ms) SAVEPOINT active_record_1
46
- SQL (0.5ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
48
- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]]
49
-  (0.2ms) SELECT COUNT(*) FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
50
- MetaTag Load (0.1ms) SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
51
-  (0.2ms) rollback transaction
52
-  (0.1ms) begin transaction
53
-  (0.1ms) rollback transaction
54
-  (0.0ms) begin transaction
55
-  (0.1ms) SELECT COUNT(*) FROM "meta_tags" 
56
-  (0.0ms) SAVEPOINT active_record_1
57
- MetaTag Exists (0.2ms) 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
58
- MetaTag Exists (0.1ms) 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
- SQL (0.4ms) 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]]
60
- SQL (0.3ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
62
-  (0.1ms) SELECT COUNT(*) FROM "meta_tags"
63
-  (0.2ms) rollback transaction
64
-  (0.0ms) begin transaction
65
-  (0.1ms) rollback transaction
66
-  (0.1ms) begin transaction
67
-  (0.1ms) rollback transaction
68
-  (0.0ms) begin transaction
69
-  (0.0ms) rollback transaction
70
-  (0.1ms) begin transaction
71
-  (0.0ms) SAVEPOINT active_record_1
72
- SQL (0.7ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
74
- MetaTag Exists (0.2ms) 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
- MetaTag Exists (0.1ms) 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
76
-  (0.2ms) rollback transaction
77
-  (0.1ms) begin transaction
78
-  (0.0ms) SAVEPOINT active_record_1
79
- SQL (0.7ms) 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]]
80
-  (0.1ms) RELEASE SAVEPOINT active_record_1
81
- MetaTag Exists (0.2ms) 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
82
- MetaTag Exists (0.1ms) 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
-  (0.2ms) rollback transaction
84
-  (0.1ms) begin transaction
85
-  (0.0ms) SAVEPOINT active_record_1
86
- MetaTag Exists (0.2ms) 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
- MetaTag Exists (0.1ms) 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
88
- SQL (0.4ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
90
-  (0.3ms) rollback transaction
91
-  (0.0ms) begin transaction
92
- MetaTag Exists (0.3ms) 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
- MetaTag Exists (0.1ms) 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
94
-  (0.1ms) rollback transaction
95
-  (0.1ms) begin transaction
96
-  (0.0ms) SAVEPOINT active_record_1
97
- SQL (0.5ms) 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]]
98
-  (0.1ms) RELEASE SAVEPOINT active_record_1
99
- MetaTag Exists (0.2ms) 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
100
- MetaTag Exists (0.2ms) 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
-  (0.2ms) rollback transaction
102
-  (0.1ms) begin transaction
103
-  (0.0ms) SAVEPOINT active_record_1
104
- SQL (0.5ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
106
- MetaTag Exists (0.2ms) 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
- MetaTag Exists (0.1ms) 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
108
-  (0.2ms) rollback transaction
109
-  (0.1ms) begin transaction
110
-  (0.0ms) rollback transaction
111
-  (0.0ms) begin transaction
112
-  (0.0ms) rollback transaction
113
-  (0.1ms) begin transaction
114
-  (0.1ms) SAVEPOINT active_record_1
115
- MetaTag Exists (0.2ms) 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
116
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
118
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.2ms) 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
120
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
122
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
124
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
126
- MetaTag Exists (0.1ms) 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
- SQL (0.4ms) 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]]
128
- SQL (0.3ms) 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
- SQL (0.2ms) 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]]
130
- SQL (0.3ms) 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
- SQL (0.3ms) 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]]
132
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
134
-  (0.1ms) RELEASE SAVEPOINT active_record_1
135
-  (0.1ms) SAVEPOINT active_record_1
136
- SQL (0.6ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
138
- Processing by PostsController#index as HTML
139
- Category Load (0.2ms) SELECT "categories".* FROM "categories" LIMIT 1
140
- Rendered posts/index.html.erb within layouts/application (3.0ms)
141
- MetaTag Load (0.3ms) SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
142
- Completed 200 OK in 106ms (Views: 103.7ms | ActiveRecord: 0.5ms)
143
-  (0.3ms) rollback transaction
144
-  (0.1ms) begin transaction
145
-  (0.1ms) SAVEPOINT active_record_1
146
- MetaTag Exists (0.3ms) 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
147
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
149
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
151
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
153
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
155
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
157
- MetaTag Exists (0.1ms) 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
- SQL (0.5ms) 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]]
159
- SQL (0.3ms) 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
- SQL (0.2ms) 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]]
161
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
163
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
165
-  (0.1ms) RELEASE SAVEPOINT active_record_1
166
-  (0.1ms) SAVEPOINT active_record_1
167
- SQL (0.4ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
169
- Processing by PostsController#show as HTML
170
- Parameters: {"id"=>"1"}
171
- Category Load (0.2ms) SELECT "categories".* FROM "categories" LIMIT 1
172
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
173
- MetaTag Load (0.3ms) 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
-  (0.3ms) rollback transaction
176
-  (0.1ms) begin transaction
177
-  (0.1ms) SAVEPOINT active_record_1
178
- MetaTag Exists (0.2ms) 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
- MetaTag Exists (0.1ms) 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
180
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
182
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
184
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
186
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
188
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
190
- SQL (0.5ms) 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
- SQL (0.3ms) 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]]
192
- SQL (0.3ms) 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
- SQL (0.2ms) 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]]
194
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
196
- SQL (0.3ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
198
-  (0.1ms) SAVEPOINT active_record_1
199
- SQL (0.4ms) 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]]
200
-  (0.1ms) RELEASE SAVEPOINT active_record_1
201
- Processing by PostsController#show as HTML
202
- Parameters: {"id"=>"1"}
203
- Category Load (0.2ms) SELECT "categories".* FROM "categories" LIMIT 1
204
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
205
- MetaTag Load (0.2ms) SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
206
- Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms)
207
-  (0.3ms) rollback transaction
208
-  (0.1ms) begin transaction
209
-  (0.1ms) SAVEPOINT active_record_1
210
- MetaTag Exists (0.2ms) 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
211
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
213
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
215
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
217
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
219
- MetaTag Exists (0.1ms) 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
- MetaTag Exists (0.1ms) 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
221
- MetaTag Exists (0.1ms) 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
- SQL (0.4ms) 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]]
223
- SQL (0.3ms) 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
- SQL (0.2ms) 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]]
225
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
227
- SQL (0.2ms) 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
- SQL (0.2ms) 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]]
229
-  (0.1ms) RELEASE SAVEPOINT active_record_1
230
-  (0.0ms) SAVEPOINT active_record_1
231
- SQL (0.4ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
233
- Processing by PostsController#index as HTML
234
- Category Load (0.2ms) SELECT "categories".* FROM "categories" LIMIT 1
235
- MetaTag Load (0.2ms) SELECT "meta_tags".* FROM "meta_tags" WHERE "meta_tags"."taggable_id" = 1 AND "meta_tags"."taggable_type" = 'Category'
236
- Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
237
-  (0.3ms) rollback transaction
238
-  (0.1ms) begin transaction
239
- Processing by WelcomeController#index as HTML
240
- Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
241
-  (0.1ms) rollback transaction