Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n error! #24

Closed
sdr opened this issue Oct 28, 2010 · 1 comment
Closed

i18n error! #24

sdr opened this issue Oct 28, 2010 · 1 comment

Comments

@sdr
Copy link

sdr commented Oct 28, 2010

rails g active_scaffold_setup jquery
when set
config.i18n.default_locale = :de #or :ja, :es

in config/application.rb, the error will come as following:

TypeError in PlayersController#index

can't convert Symbol into Integer

Rails.root: /home/sdr/workspace/howto
Application Trace | Framework Trace | Full Trace

app/controllers/players_controller.rb:2:in <class:PlayersController>' app/controllers/players_controller.rb:1:in<top (required)>'

vendor/plugins/active_scaffold/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb:71:in []' vendor/plugins/active_scaffold/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb:71:indate_options'
vendor/plugins/active_scaffold/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb:54:in localization' vendor/plugins/active_scaffold/lib/active_scaffold/bridges/date_picker/bridge.rb:12:inblock (2 levels) in <top (required)>'
vendor/plugins/active_scaffold/lib/active_scaffold/bridges/bridge.rb:36:in call' vendor/plugins/active_scaffold/lib/active_scaffold/bridges/bridge.rb:36:inrun'
vendor/plugins/active_scaffold/lib/active_scaffold/bridges/bridge.rb:42:in block in run_all' vendor/plugins/active_scaffold/lib/active_scaffold/bridges/bridge.rb:41:ineach'
vendor/plugins/active_scaffold/lib/active_scaffold/bridges/bridge.rb:41:in run_all' vendor/plugins/active_scaffold/lib/active_scaffold.rb:59:inactive_scaffold'
activesupport (3.0.1) lib/active_support/dependencies.rb:454:in load' activesupport (3.0.1) lib/active_support/dependencies.rb:454:inblock in load_file'
activesupport (3.0.1) lib/active_support/dependencies.rb:591:in new_constants_in' activesupport (3.0.1) lib/active_support/dependencies.rb:453:inload_file'
activesupport (3.0.1) lib/active_support/dependencies.rb:340:in require_or_load' activesupport (3.0.1) lib/active_support/dependencies.rb:491:inload_missing_constant'
activesupport (3.0.1) lib/active_support/dependencies.rb:183:in block in const_missing' activesupport (3.0.1) lib/active_support/dependencies.rb:181:ineach'
activesupport (3.0.1) lib/active_support/dependencies.rb:181:in const_missing' activesupport (3.0.1) lib/active_support/inflector/methods.rb:124:inblock in constantize'
activesupport (3.0.1) lib/active_support/inflector/methods.rb:123:in each' activesupport (3.0.1) lib/active_support/inflector/methods.rb:123:inconstantize'
activesupport (3.0.1) lib/active_support/dependencies.rb:523:in block in <class:Reference>' activesupport (3.0.1) lib/active_support/dependencies.rb:533:inyield'
activesupport (3.0.1) lib/active_support/dependencies.rb:533:in default' activesupport (3.0.1) lib/active_support/dependencies.rb:533:inget'
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:58:in controller_reference' actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:44:incontroller'
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:23:in call' rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:inblock in call'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in block in recognize' rack-mount (0.6.13) lib/rack/mount/code_generation.rb:117:inoptimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in recognize' rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall'
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:492:in call' actionpack (3.0.1) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/head.rb:14:in call' rack (1.2.1) lib/rack/methodoverride.rb:24:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.0.1) lib/action_dispatch/middleware/flash.rb:182:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/session/abstract_store.rb:149:in call' actionpack (3.0.1) lib/action_dispatch/middleware/cookies.rb:287:incall'
activerecord (3.0.1) lib/active_record/query_cache.rb:32:in block in call' activerecord (3.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:28:incache'
activerecord (3.0.1) lib/active_record/query_cache.rb:12:in cache' activerecord (3.0.1) lib/active_record/query_cache.rb:31:incall'
activerecord (3.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in call' actionpack (3.0.1) lib/action_dispatch/middleware/callbacks.rb:46:inblock in call'
activesupport (3.0.1) lib/active_support/callbacks.rb:415:in _run_call_callbacks' actionpack (3.0.1) lib/action_dispatch/middleware/callbacks.rb:44:incall'
rack (1.2.1) lib/rack/sendfile.rb:107:in call' actionpack (3.0.1) lib/action_dispatch/middleware/remote_ip.rb:48:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/show_exceptions.rb:46:in call' railties (3.0.1) lib/rails/rack/logger.rb:13:incall'
rack (1.2.1) lib/rack/runtime.rb:17:in call' activesupport (3.0.1) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.2.1) lib/rack/lock.rb:11:in block in call' <internal:prelude>:10:insynchronize'
rack (1.2.1) lib/rack/lock.rb:11:in call' actionpack (3.0.1) lib/action_dispatch/middleware/static.rb:30:incall'
railties (3.0.1) lib/rails/application.rb:168:in call' railties (3.0.1) lib/rails/application.rb:77:inmethod_missing'
railties (3.0.1) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.1) lib/rack/content_length.rb:13:incall'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in service' /home/sdr/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:inservice'
/home/sdr/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /home/sdr/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:inblock in start_thread'

@vhochstein
Copy link
Owner

Hi, I ve changed the code to throw an error. The reason for your issue is that you do not have defined date and time localizations in your config/locale/de file.

I would recommend that you pick a default file for your locale at:
http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale

Please take also a look at: http://vhochstein.wordpress.com/2010/09/18/activescaffold-using-dates-with-jquery/

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants