Agile Web Development with Rails, Edition 4

16 Deployment 15.3 Task J3: Translating Checkout

15.4 Task J4: Add a locale switcher.

Expected at least 1 element matching "option[value='es']", found 0.

Traceback:
  /home/rubys/git/awdwr/edition4/checkdepot.rb:391:in `block in <class:DepotTest>'

Add form for setting and showing the site based on the locale.

Use CSS to position the form.

edit public/stylesheets/depot.css
.locale {
  float: right;
  margin: -0.25em 0.1em;
}

When provided, save the locale in the session.

edit app/controllers/store_controller.rb
  def index
    if params[:set_locale]
      redirect_to store_url(locale: params[:set_locale])
    else
      @products = Product.order(:title)
    end
  end
edit app/views/layouts/application.html.erb
  <div id="banner">
    <%= form_tag store_path, class: 'locale' do %>
      <%= select_tag 'set_locale', 
        options_for_select(LANGUAGES, I18n.locale.to_s),
        onchange: 'this.form.submit()' %>
      <%= submit_tag 'submit' %>
      <%= javascript_tag "$('.locale input').hide()" %>
    <% end %>
    <%= image_tag("logo.png") %>
    <%= @page_title || t('.title') %>
  </div>

Try out the form

get /en

NameError in Store#index

Showing /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.erb where line #6 raised:

uninitialized constant I18n::RESERVED_KEYS

Extracted source (around line #6):

3: <% end %>
4: 
5: <!-- START_HIGHLIGHT -->
6: <h1><%= t('.title_html') %></h1>
7: <!-- END_HIGHLIGHT -->
8: 
9: <% @products.each do |product| %>

Rails.root: /home/rubys/git/awdwr/edition4/work-192-30/depot

Application Trace | Framework Trace | Full Trace
app/views/store/index.html.erb:6:in `_app_views_store_index_html_erb___2376477419595695665_30373580_558081496217810729'

Request

Parameters:

{"locale"=>"en"}

Show session dump

Show env dump

Response

Headers:

None

rake test
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
..........
Finished in 0.342131 seconds.
 
10 tests, 31 assertions, 0 failures, 0 errors, 0 skips
 
Test run options: --seed 44982
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
.....................E.E...............EE.......
Finished in 1.050470 seconds.
 
  1) Error:
test_should_get_edit(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb___4272172148724778675_25069500__448316217307105316'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb___4272172148724778675_25069500__448316217307105316'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/edit.html.erb:3:in `_app_views_orders_edit_html_erb__1860248399922319580_25242860__4573138605780712050'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  2) Error:
test_should_get_new(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb___4272172148724778675_25069500__448316217307105316'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb___4272172148724778675_25069500__448316217307105316'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb__1208260181697530377_15605600__4573138605780712050'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_markup_needed_for_store.js.coffee_is_in_place(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.erb:6:in `_app_views_store_index_html_erb___662947281382384415_17580740__4573138605780712050'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  4) Error:
test_should_get_index(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.erb:6:in `_app_views_store_index_html_erb___662947281382384415_17580740__4573138605780712050'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
48 tests, 71 assertions, 0 failures, 4 errors, 0 skips
 
Test run options: --seed 19332
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
EEE
Finished in 0.441956 seconds.
 
  1) Error:
test_buying_a_product(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.erb:6:in `_app_views_store_index_html_erb__2949503750645933364_23268500__2623708917248904498'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  2) Error:
test_two_people_buying(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb___935319913480371281_20590020__3425078594241605889'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb___935319913480371281_20590020__3425078594241605889'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb___4033671276809224038_20861760__2623708917248904498'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_buying_a_product(UserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.erb:6:in `_app_views_store_index_html_erb__2949503750645933364_23268500__2623708917248904498'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
3 tests, 0 assertions, 0 failures, 3 errors, 0 skips
 
Test run options: --seed 37345
Errors running test:functionals, test:integration!

16 Deployment 15.3 Task J3: Translating Checkout