vendredi 4 décembre 2015

I18n::ArgumentError Object must be a Date, DateTime or Time object

I am having an issue with I18n. Can anyone help in solving the issue? Below is the error message

i18n (0.6.11) lib/i18n/backend/base.rb:53:in localize' i18n (0.6.11) lib/i18n.rb:246:inlocalize' actionpack (3.1.0) lib/action_view/helpers/translation_helper.rb:59:in l' app/views/translations/index.html.erb:8:in_app_views_translations_index_html_erb___64424097__633630588' actionpack (3.1.0) lib/action_view/template.rb:144:in send' actionpack (3.1.0) lib/action_view/template.rb:144:inrender' activesupport (3.1.0) lib/active_support/notifications.rb:55:in instrument' actionpack (3.1.0) lib/action_view/template.rb:142:inrender' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:40:in render_template' actionpack (3.1.0) lib/action_view/renderer/abstract_renderer.rb:33:ininstrument' activesupport (3.1.0) lib/active_support/notifications.rb:53:in instrument' activesupport (3.1.0) lib/active_support/notifications/instrumenter.rb:21:ininstrument' activesupport (3.1.0) lib/active_support/notifications.rb:53:in instrument' actionpack (3.1.0) lib/action_view/renderer/abstract_renderer.rb:33:ininstrument' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:39:in render_template' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:47:inrender_with_layout' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:38:in render_template' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:12:inrender_without_newrelic' actionpack (3.1.0) lib/action_view/renderer/abstract_renderer.rb:22:in wrap_formats' actionpack (3.1.0) lib/action_view/renderer/template_renderer.rb:9:inrender_without_newrelic' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:152:in render' newrelic_rpm (3.14.0.305) lib/new_relic/agent/method_tracer.rb:73:intrace_execution_scoped' newrelic_rpm (3.14.0.305) lib/new_relic/agent/method_tracer_helpers.rb:82:in trace_execution_scoped' newrelic_rpm (3.14.0.305) lib/new_relic/agent/method_tracer.rb:71:intrace_execution_scoped' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:151:in render' actionpack (3.1.0) lib/action_view/renderer/renderer.rb:36:inrender_template' actionpack (3.1.0) lib/action_view/renderer/renderer.rb:17:in render' actionpack (3.1.0) lib/abstract_controller/rendering.rb:120:in_render_template' actionpack (3.1.0) lib/action_controller/metal/streaming.rb:250:in _render_template' actionpack (3.1.0) lib/abstract_controller/rendering.rb:114:inrender_to_body' actionpack (3.1.0) lib/action_controller/metal/renderers.rb:30:in render_to_body' actionpack (3.1.0) lib/action_controller/metal/compatibility.rb:43:inrender_to_body' actionpack (3.1.0) lib/abstract_controller/rendering.rb:99:in render' actionpack (3.1.0) lib/action_controller/metal/rendering.rb:16:inrender' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:40:in render' activesupport (3.1.0) lib/active_support/core_ext/benchmark.rb:5:inms' /home/nikhil/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/benchmark.rb:308:in realtime' activesupport (3.1.0) lib/active_support/core_ext/benchmark.rb:5:inms' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:40:in render' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:78:incleanup_view_runtime' activerecord (3.1.0) lib/active_record/railties/controller_runtime.rb:24:in cleanup_view_runtime' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:39:inrender' actionpack (3.1.0) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (3.1.0) lib/action_controller/metal/implicit_render.rb:5:insend_action' actionpack (3.1.0) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.1.0) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.1.0) lib/abstract_controller/callbacks.rb:18:in process_action' activesupport (3.1.0) lib/active_support/callbacks.rb:461:in_run__154963461__process_action__253585378__callbacks' activesupport (3.1.0) lib/active_support/callbacks.rb:386:in send' activesupport (3.1.0) lib/active_support/callbacks.rb:386:in_run_process_action_callbacks' activesupport (3.1.0) lib/active_support/callbacks.rb:81:in send' activesupport (3.1.0) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.1.0) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.1.0) lib/action_controller/metal/rescue.rb:17:inprocess_action' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.1.0) lib/active_support/notifications.rb:53:ininstrument' activesupport (3.1.0) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.1.0) lib/active_support/notifications.rb:53:ininstrument' actionpack (3.1.0) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.1.0) lib/action_controller/metal/params_wrapper.rb:201:inprocess_action' activerecord (3.1.0) lib/active_record/railties/controller_runtime.rb:18:in process_action' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:30:inprocess_action' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:362:in perform_action_with_newrelic_trace' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:29:inprocess_action' actionpack (3.1.0) lib/abstract_controller/base.rb:121:in process' actionpack (3.1.0) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.1.0) lib/action_controller/metal.rb:193:in dispatch' actionpack (3.1.0) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.1.0) lib/action_controller/metal.rb:236:in action' actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:65:incall' actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:65:in dispatch' actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:29:incall' rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in call' rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:inrecognize' rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:in optimized_each' rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:inrecognize' rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in call' actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:531:incall' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in call' turnout (0.2.5) lib/rack/turnout.rb:19:incall' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in call' newrelic_rpm (3.14.0.305) lib/new_relic/rack/agent_hooks.rb:30:intraced_call' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in call' newrelic_rpm (3.14.0.305) lib/new_relic/rack/browser_monitoring.rb:32:intraced_call' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in call' actionpack (3.1.0) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in call' rack (1.3.10) lib/rack/etag.rb:23:incall' newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'

Aucun commentaire:

Enregistrer un commentaire