r18n-rails 0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ =begin
2
+ R18n helpers for Rails.
3
+
4
+ Copyright (C) 2009 Andrey “A.I.” Sitnik <andrey@sitnik.ru>
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+ =end
19
+
20
+ module R18n
21
+ module Rails
22
+ module Helpers
23
+ # Return current R18n I18n object, to use R18n API:
24
+ # * <tt>r18n.available_locales</tt> – available application translations.
25
+ # * <tt>r18n.locales</tt> – List of user locales
26
+ # * <tt>r18n.reload!</tt> – Reload R18n translations
27
+ #
28
+ # You can get translations by <tt>r18n.user.name</tt>, but +t+ helper is
29
+ # more beautiful, short and also support R18n syntax.
30
+ def r18n
31
+ R18n.get
32
+ end
33
+
34
+ # Extend +t+ helper to use also R18n syntax.
35
+ #
36
+ # t 'user.name' # Rails I18n style
37
+ # t.user.name # R18n style
38
+ def t(*params)
39
+ if params.empty?
40
+ r18n.t
41
+ else
42
+ super(*params)
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,4 @@
1
+ class ApplicationController < ActionController::Base
2
+ helper :all
3
+ protect_from_forgery
4
+ end
@@ -0,0 +1,23 @@
1
+ class TestController < ApplicationController
2
+ def locales
3
+ render :text => R18n.get.locales.map { |i| i.code }.join(', ')
4
+ end
5
+
6
+ def translations
7
+ render :text => "R18n: #{R18n.get.r18n.translations}. " +
8
+ "Rails I18n: #{R18n.get.i18n.translations}"
9
+ end
10
+
11
+ def available
12
+ render :text => R18n.get.available_locales.map { |i| i.code }.join(', ')
13
+ end
14
+
15
+ def helpers
16
+ @from_controller = r18n.user.name
17
+ render
18
+ end
19
+
20
+ def untranslated
21
+ render :text => "#{R18n.get.user.not.exists}"
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ # Methods added to this helper will be available to all templates in the application.
2
+ module ApplicationHelper
3
+ end
@@ -0,0 +1,2 @@
1
+ r18n:
2
+ translations: supported
@@ -0,0 +1,2 @@
1
+ user:
2
+ name: Имя
@@ -0,0 +1,4 @@
1
+ class Post < ActiveRecord::Base
2
+ include R18n::Translated
3
+ translations :title
4
+ end
@@ -0,0 +1,4 @@
1
+ <%= @from_controller %>
2
+ <%= r18n.user.name %>
3
+ <%= t 'user.name' %>
4
+ <%= t.user.name %>
@@ -0,0 +1,110 @@
1
+ # Don't change this file!
2
+ # Configure your app in config/environment.rb and config/environments/*.rb
3
+
4
+ RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
+
6
+ module Rails
7
+ class << self
8
+ def boot!
9
+ unless booted?
10
+ preinitialize
11
+ pick_boot.run
12
+ end
13
+ end
14
+
15
+ def booted?
16
+ defined? Rails::Initializer
17
+ end
18
+
19
+ def pick_boot
20
+ (vendor_rails? ? VendorBoot : GemBoot).new
21
+ end
22
+
23
+ def vendor_rails?
24
+ File.exist?("#{RAILS_ROOT}/vendor/rails")
25
+ end
26
+
27
+ def preinitialize
28
+ load(preinitializer_path) if File.exist?(preinitializer_path)
29
+ end
30
+
31
+ def preinitializer_path
32
+ "#{RAILS_ROOT}/config/preinitializer.rb"
33
+ end
34
+ end
35
+
36
+ class Boot
37
+ def run
38
+ load_initializer
39
+ Rails::Initializer.run(:set_load_path)
40
+ end
41
+ end
42
+
43
+ class VendorBoot < Boot
44
+ def load_initializer
45
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46
+ Rails::Initializer.run(:install_gem_spec_stubs)
47
+ Rails::GemDependency.add_frozen_gem_path
48
+ end
49
+ end
50
+
51
+ class GemBoot < Boot
52
+ def load_initializer
53
+ self.class.load_rubygems
54
+ load_rails_gem
55
+ require 'initializer'
56
+ end
57
+
58
+ def load_rails_gem
59
+ if version = self.class.gem_version
60
+ gem 'rails', version
61
+ else
62
+ gem 'rails'
63
+ end
64
+ rescue Gem::LoadError => load_error
65
+ $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
66
+ exit 1
67
+ end
68
+
69
+ class << self
70
+ def rubygems_version
71
+ Gem::RubyGemsVersion rescue nil
72
+ end
73
+
74
+ def gem_version
75
+ if defined? RAILS_GEM_VERSION
76
+ RAILS_GEM_VERSION
77
+ elsif ENV.include?('RAILS_GEM_VERSION')
78
+ ENV['RAILS_GEM_VERSION']
79
+ else
80
+ parse_gem_version(read_environment_rb)
81
+ end
82
+ end
83
+
84
+ def load_rubygems
85
+ min_version = '1.3.2'
86
+ require 'rubygems'
87
+ unless rubygems_version >= min_version
88
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
89
+ exit 1
90
+ end
91
+
92
+ rescue LoadError
93
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
94
+ exit 1
95
+ end
96
+
97
+ def parse_gem_version(text)
98
+ $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
99
+ end
100
+
101
+ private
102
+ def read_environment_rb
103
+ File.read("#{RAILS_ROOT}/config/environment.rb")
104
+ end
105
+ end
106
+ end
107
+ end
108
+
109
+ # All that for this:
110
+ Rails.boot!
@@ -0,0 +1,17 @@
1
+ development:
2
+ adapter: sqlite3
3
+ database: db/development.sqlite3
4
+ pool: 5
5
+ timeout: 5000
6
+
7
+ test:
8
+ adapter: sqlite3
9
+ database: db/test.sqlite3
10
+ pool: 5
11
+ timeout: 5000
12
+
13
+ production:
14
+ adapter: sqlite3
15
+ database: db/production.sqlite3
16
+ pool: 5
17
+ timeout: 5000
@@ -0,0 +1,9 @@
1
+ RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
2
+
3
+ require File.join(File.dirname(__FILE__), 'boot')
4
+
5
+ Rails::Initializer.run do |config|
6
+ config.time_zone = 'UTC'
7
+
8
+ config.gem 'r18n-rails', :lib => Rails.root + '../../lib/r18n-rails'
9
+ end
@@ -0,0 +1,17 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # In the development environment your application's code is reloaded on
4
+ # every request. This slows down response time but is perfect for development
5
+ # since you don't have to restart the webserver when you make code changes.
6
+ config.cache_classes = false
7
+
8
+ # Log error messages when you accidentally call methods on nil.
9
+ config.whiny_nils = true
10
+
11
+ # Show full error reports and disable caching
12
+ config.action_controller.consider_all_requests_local = true
13
+ config.action_view.debug_rjs = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
@@ -0,0 +1,28 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # The production environment is meant for finished, "live" apps.
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.action_controller.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+ config.action_view.cache_template_loading = true
11
+
12
+ # See everything in the log (default is :info)
13
+ # config.log_level = :debug
14
+
15
+ # Use a different logger for distributed setups
16
+ # config.logger = SyslogLogger.new
17
+
18
+ # Use a different cache store in production
19
+ # config.cache_store = :mem_cache_store
20
+
21
+ # Enable serving of images, stylesheets, and javascripts from an asset server
22
+ # config.action_controller.asset_host = "http://assets.example.com"
23
+
24
+ # Disable delivery errors, bad email addresses will be ignored
25
+ # config.action_mailer.raise_delivery_errors = false
26
+
27
+ # Enable threaded mode
28
+ # config.threadsafe!
@@ -0,0 +1,28 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+ config.cache_classes = true
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.action_controller.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+ config.action_view.cache_template_loading = true
16
+
17
+ # Disable request forgery protection in test environment
18
+ config.action_controller.allow_forgery_protection = false
19
+
20
+ # Tell Action Mailer not to deliver emails to the real world.
21
+ # The :test delivery method accumulates sent emails in the
22
+ # ActionMailer::Base.deliveries array.
23
+ config.action_mailer.delivery_method = :test
24
+
25
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
26
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
27
+ # like if you have constraints or database-specific column types
28
+ # config.active_record.schema_format = :sql
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying cookie session data integrity.
4
+ # If you change this key, all old sessions will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ ActionController::Base.session = {
8
+ :key => '_app_session',
9
+ :secret => '9d0d98e3704e81d8e999c9761990bb2388d9f4a7dc355560c1ee5f237786ab54ddd81ed41d95d58aac06ace50224006b9fb2198af93cd442fd8335247eb78290'
10
+ }
11
+
12
+ # Use the database for sessions instead of the cookie-based default,
13
+ # which shouldn't be used to store highly confidential information
14
+ # (create the session table with "rake db:sessions:create")
15
+ # ActionController::Base.session_store = :active_record_store
@@ -0,0 +1,7 @@
1
+ en:
2
+ r18n:
3
+ translations: unsupported
4
+ i18n:
5
+ translations: supported
6
+ user:
7
+ name: Name
@@ -0,0 +1,4 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+ map.connect ':action', :controller => 'test'
3
+ map.connect ':locale/:action', :controller => 'test'
4
+ end
@@ -0,0 +1,12 @@
1
+ class CreatePosts < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :posts do |t|
4
+ t.string :title_en
5
+ t.string :title_ru
6
+ end
7
+ end
8
+
9
+ def self.down
10
+ drop_table :posts
11
+ end
12
+ end
File without changes
@@ -0,0 +1,789 @@
1
+ # Logfile created on Fri Dec 18 15:44:11 +0300 2009
2
+
3
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
4
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
5
+
6
+
7
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
8
+ Parameters: {"locale"=>"ru"}
9
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
10
+
11
+
12
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
13
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
14
+
15
+
16
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
17
+ Completed in 51ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
18
+
19
+
20
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
21
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
22
+
23
+
24
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
25
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
26
+
27
+
28
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
29
+ Rendering test/helpers
30
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
31
+
32
+
33
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:46:32) [GET]
34
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
35
+
36
+
37
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
38
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
39
+
40
+
41
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
42
+ Parameters: {"locale"=>"ru"}
43
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
44
+
45
+
46
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
47
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
48
+
49
+
50
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
51
+ Completed in 53ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
52
+
53
+
54
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
55
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
56
+
57
+
58
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
59
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
60
+
61
+
62
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
63
+ Rendering test/helpers
64
+ Completed in 17ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
65
+
66
+
67
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:47:59) [GET]
68
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
69
+
70
+
71
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
72
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
73
+
74
+
75
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
76
+ Parameters: {"locale"=>"ru"}
77
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
78
+
79
+
80
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
81
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
82
+
83
+
84
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
85
+ Completed in 53ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
86
+
87
+
88
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
89
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
90
+
91
+
92
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
93
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
94
+
95
+
96
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
97
+ Rendering test/helpers
98
+ Completed in 17ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
99
+
100
+
101
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:48:54) [GET]
102
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
103
+
104
+
105
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
106
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
107
+
108
+
109
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
110
+ Parameters: {"locale"=>"ru"}
111
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
112
+
113
+
114
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
115
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
116
+
117
+
118
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
119
+ Completed in 72ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
120
+
121
+
122
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
123
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
124
+
125
+
126
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
127
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
128
+
129
+
130
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
131
+ Rendering test/helpers
132
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
133
+
134
+
135
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:49:36) [GET]
136
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
137
+
138
+
139
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
140
+ Completed in 119ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
141
+
142
+
143
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
144
+ Parameters: {"locale"=>"ru"}
145
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
146
+
147
+
148
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
149
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
150
+
151
+
152
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
153
+ Completed in 51ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
154
+
155
+
156
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
157
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
158
+
159
+
160
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
161
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
162
+
163
+
164
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
165
+ Rendering test/helpers
166
+ Completed in 40ms (View: 32, DB: 0) | 200 OK [http://test.host/helpers]
167
+
168
+
169
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:54:13) [GET]
170
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
171
+
172
+
173
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
174
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
175
+
176
+
177
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
178
+ Parameters: {"locale"=>"ru"}
179
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
180
+
181
+
182
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
183
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
184
+
185
+
186
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
187
+ Completed in 51ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
188
+
189
+
190
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
191
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
192
+
193
+
194
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
195
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
196
+
197
+
198
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
199
+ Rendering test/helpers
200
+ Completed in 17ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
201
+
202
+
203
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:57:49) [GET]
204
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
205
+
206
+
207
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
208
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
209
+
210
+
211
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
212
+ Parameters: {"locale"=>"ru"}
213
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
214
+
215
+
216
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
217
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
218
+
219
+
220
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
221
+ Completed in 51ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
222
+
223
+
224
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
225
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
226
+
227
+
228
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
229
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
230
+
231
+
232
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
233
+ Rendering test/helpers
234
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
235
+
236
+
237
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 15:59:43) [GET]
238
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
239
+ SQL (0.5ms)  SELECT name
240
+ FROM sqlite_master
241
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
242
+ 
243
+ SQL (0.2ms) select sqlite_version(*)
244
+ SQL (58.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
245
+ SQL (37.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
246
+ SQL (0.3ms)  SELECT name
247
+ FROM sqlite_master
248
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
249
+ 
250
+
251
+
252
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
253
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
254
+
255
+
256
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
257
+ Parameters: {"locale"=>"ru"}
258
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
259
+
260
+
261
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
262
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
263
+
264
+
265
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
266
+ Completed in 52ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
267
+
268
+
269
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
270
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
271
+
272
+
273
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
274
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
275
+
276
+
277
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
278
+ Rendering test/helpers
279
+ Completed in 17ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
280
+
281
+
282
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:00:06) [GET]
283
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
284
+ SQL (0.6ms)  SELECT name
285
+ FROM sqlite_master
286
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
287
+ 
288
+
289
+
290
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
291
+ Completed in 19ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
292
+
293
+
294
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
295
+ Parameters: {"locale"=>"ru"}
296
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
297
+
298
+
299
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
300
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
301
+
302
+
303
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
304
+ Completed in 53ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
305
+
306
+
307
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
308
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
309
+
310
+
311
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
312
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
313
+
314
+
315
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
316
+ Rendering test/helpers
317
+ Completed in 18ms (View: 11, DB: 0) | 200 OK [http://test.host/helpers]
318
+
319
+
320
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:02:27) [GET]
321
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
322
+ SQL (0.3ms) select sqlite_version(*)
323
+ SQL (0.4ms)  SELECT name
324
+ FROM sqlite_master
325
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
326
+ 
327
+ SQL (1.0ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
328
+ SQL (0.3ms)  SELECT name
329
+ FROM sqlite_master
330
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
331
+ 
332
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
333
+ SQL (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
334
+
335
+
336
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
337
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
338
+
339
+
340
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
341
+ Parameters: {"locale"=>"ru"}
342
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
343
+
344
+
345
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
346
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
347
+
348
+
349
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
350
+ Completed in 69ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
351
+
352
+
353
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
354
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
355
+
356
+
357
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
358
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
359
+
360
+
361
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
362
+ Rendering test/helpers
363
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
364
+
365
+
366
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:02:59) [GET]
367
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
368
+ SQL (0.3ms) select sqlite_version(*)
369
+ SQL (0.5ms)  SELECT name
370
+ FROM sqlite_master
371
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
372
+ 
373
+ SQL (1.1ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
374
+ SQL (0.3ms)  SELECT name
375
+ FROM sqlite_master
376
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
377
+ 
378
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
379
+ SQL (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
380
+
381
+
382
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
383
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
384
+
385
+
386
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
387
+ Parameters: {"locale"=>"ru"}
388
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
389
+
390
+
391
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
392
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
393
+
394
+
395
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
396
+ Completed in 52ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
397
+
398
+
399
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
400
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
401
+
402
+
403
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
404
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
405
+
406
+
407
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
408
+ Rendering test/helpers
409
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
410
+
411
+
412
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:03:46) [GET]
413
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
414
+ SQL (0.4ms) select sqlite_version(*)
415
+ SQL (0.5ms)  SELECT name
416
+ FROM sqlite_master
417
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
418
+ 
419
+ SQL (1.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
420
+ SQL (0.3ms)  SELECT name
421
+ FROM sqlite_master
422
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
423
+ 
424
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
425
+ SQL (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
426
+
427
+
428
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
429
+ Completed in 20ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
430
+
431
+
432
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
433
+ Parameters: {"locale"=>"ru"}
434
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
435
+
436
+
437
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
438
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
439
+
440
+
441
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
442
+ Completed in 53ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
443
+
444
+
445
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
446
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
447
+
448
+
449
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
450
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
451
+
452
+
453
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
454
+ Rendering test/helpers
455
+ Completed in 17ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
456
+
457
+
458
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:06:47) [GET]
459
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
460
+ SQL (0.3ms) select sqlite_version(*)
461
+ SQL (0.4ms)  SELECT name
462
+ FROM sqlite_master
463
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
464
+ 
465
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
466
+ SQL (0.2ms)  SELECT name
467
+ FROM sqlite_master
468
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
469
+ 
470
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
471
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
472
+ SQL (0.2ms)  SELECT name
473
+ FROM sqlite_master
474
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
475
+ 
476
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
477
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
478
+
479
+
480
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
481
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
482
+
483
+
484
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
485
+ Parameters: {"locale"=>"ru"}
486
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
487
+
488
+
489
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
490
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
491
+
492
+
493
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
494
+ Completed in 56ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
495
+
496
+
497
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
498
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
499
+
500
+
501
+ Processing TestController#available (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
502
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
503
+
504
+
505
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
506
+ Rendering test/helpers
507
+ Completed in 18ms (View: 9, DB: 0) | 200 OK [http://test.host/helpers]
508
+
509
+
510
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-18 16:07:01) [GET]
511
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
512
+ SQL (0.3ms) select sqlite_version(*)
513
+ SQL (0.5ms)  SELECT name
514
+ FROM sqlite_master
515
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
516
+ 
517
+ SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
518
+ SQL (0.2ms)  SELECT name
519
+ FROM sqlite_master
520
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
521
+ 
522
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
523
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
524
+ SQL (0.3ms)  SELECT name
525
+ FROM sqlite_master
526
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
527
+ 
528
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
529
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
530
+
531
+
532
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:20) [GET]
533
+ Completed in 22ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
534
+
535
+
536
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
537
+ Parameters: {"locale"=>"ru"}
538
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
539
+
540
+
541
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
542
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
543
+
544
+
545
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
546
+ Completed in 77ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
547
+
548
+
549
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
550
+ Completed in 10ms (View: 3, DB: 0) | 200 OK [http://test.host/translations]
551
+
552
+
553
+ Processing TestController#available (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
554
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
555
+
556
+
557
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
558
+ Rendering test/helpers
559
+ Completed in 52ms (View: 44, DB: 0) | 200 OK [http://test.host/helpers]
560
+
561
+
562
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-19 23:51:21) [GET]
563
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
564
+ SQL (0.3ms) select sqlite_version(*)
565
+ SQL (0.4ms)  SELECT name
566
+ FROM sqlite_master
567
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
568
+ 
569
+ SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
570
+ SQL (0.2ms)  SELECT name
571
+ FROM sqlite_master
572
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
573
+ 
574
+ SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
575
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
576
+ SQL (0.3ms)  SELECT name
577
+ FROM sqlite_master
578
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
579
+ 
580
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
581
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
582
+
583
+
584
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
585
+ Completed in 17ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
586
+
587
+
588
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
589
+ Parameters: {"locale"=>"ru"}
590
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
591
+
592
+
593
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
594
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
595
+
596
+
597
+ Processing TestController#locales (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
598
+ Completed in 69ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
599
+
600
+
601
+ Processing TestController#translations (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
602
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
603
+
604
+
605
+ Processing TestController#available (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
606
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
607
+
608
+
609
+ Processing TestController#helpers (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
610
+ Rendering test/helpers
611
+ Completed in 18ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
612
+
613
+
614
+ Processing TestController#untranslated (for 0.0.0.0 at 2009-12-19 23:51:44) [GET]
615
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
616
+ SQL (0.3ms) select sqlite_version(*)
617
+ SQL (0.5ms)  SELECT name
618
+ FROM sqlite_master
619
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
620
+ 
621
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
622
+ SQL (0.2ms)  SELECT name
623
+ FROM sqlite_master
624
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
625
+ 
626
+ SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
627
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
628
+ SQL (0.3ms)  SELECT name
629
+ FROM sqlite_master
630
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
631
+ 
632
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
633
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
634
+
635
+
636
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
637
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
638
+
639
+
640
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
641
+ Parameters: {"locale"=>"ru"}
642
+ Completed in 5ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
643
+
644
+
645
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
646
+ Completed in 5ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
647
+
648
+
649
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
650
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
651
+
652
+
653
+ Processing TestController#translations (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
654
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
655
+
656
+
657
+ Processing TestController#available (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
658
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
659
+
660
+
661
+ Processing TestController#helpers (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
662
+ Rendering test/helpers
663
+ Completed in 72ms (View: 68, DB: 0) | 200 OK [http://test.host/helpers]
664
+
665
+
666
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-01-03 18:33:55) [GET]
667
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
668
+ SQL (0.3ms) select sqlite_version(*)
669
+ SQL (0.4ms)  SELECT name
670
+ FROM sqlite_master
671
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
672
+ 
673
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
674
+ SQL (0.2ms)  SELECT name
675
+ FROM sqlite_master
676
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
677
+ 
678
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
679
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
680
+ SQL (0.3ms)  SELECT name
681
+ FROM sqlite_master
682
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
683
+ 
684
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
685
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
686
+
687
+
688
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
689
+ Completed in 8ms (View: 1, DB: 0) | 200 OK [http://test.host/locales]
690
+
691
+
692
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
693
+ Parameters: {"locale"=>"ru"}
694
+ Completed in 5ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
695
+
696
+
697
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
698
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
699
+
700
+
701
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
702
+ Completed in 5ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
703
+
704
+
705
+ Processing TestController#translations (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
706
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
707
+
708
+
709
+ Processing TestController#available (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
710
+ Completed in 4ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
711
+
712
+
713
+ Processing TestController#helpers (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
714
+ Rendering test/helpers
715
+ Completed in 42ms (View: 38, DB: 0) | 200 OK [http://test.host/helpers]
716
+
717
+
718
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-01-03 19:32:59) [GET]
719
+ Completed in 5ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
720
+ SQL (0.3ms) select sqlite_version(*)
721
+ SQL (0.4ms)  SELECT name
722
+ FROM sqlite_master
723
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
724
+ 
725
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
726
+ SQL (0.2ms)  SELECT name
727
+ FROM sqlite_master
728
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
729
+ 
730
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
731
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
732
+ SQL (0.3ms)  SELECT name
733
+ FROM sqlite_master
734
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
735
+ 
736
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
737
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
738
+
739
+
740
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
741
+ Completed in 19ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
742
+
743
+
744
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
745
+ Parameters: {"locale"=>"ru"}
746
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
747
+
748
+
749
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
750
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
751
+
752
+
753
+ Processing TestController#locales (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
754
+ Completed in 53ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
755
+
756
+
757
+ Processing TestController#translations (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
758
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/translations]
759
+
760
+
761
+ Processing TestController#available (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
762
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
763
+
764
+
765
+ Processing TestController#helpers (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
766
+ Rendering test/helpers
767
+ Completed in 18ms (View: 10, DB: 0) | 200 OK [http://test.host/helpers]
768
+
769
+
770
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-01-03 19:33:28) [GET]
771
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
772
+ SQL (0.3ms) select sqlite_version(*)
773
+ SQL (0.4ms)  SELECT name
774
+ FROM sqlite_master
775
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
776
+ 
777
+ SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
778
+ SQL (0.2ms)  SELECT name
779
+ FROM sqlite_master
780
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
781
+ 
782
+ SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
783
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
784
+ SQL (0.2ms)  SELECT name
785
+ FROM sqlite_master
786
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
787
+ 
788
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
789
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')