Hello Folks,

I'm dealing with this:

I have te pt-PT locale and it works perfect but when i load the page
on my "cadastro" index a have this "Só existe um(a) #{model} do
momento ", but the #{model} should be pointed to "cadastro".

If i try to using the i18n module to suggest field uses as i see on
the rapid rails 3 book (in the /locale/app.pt-PT.yml):

activerecord:
   attributes:
     cadastro:
        nome: Nome do Utente

i get the fowling error:

NoMethodError
undefined method `deep_symbolize_keys' for "Nome do Utente":String

And the framework trace as:

hobo/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:32:in
`store_translations'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:158:in `block in
load_file'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:158:in `each'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:158:in `load_file'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in `block in
load_translations'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in `each'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in
`load_translations'
hobo/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:55:in
`init_translations'
hobo/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:69:in `lookup'
hobo/gems/i18n-0.5.0/lib/i18n/backend/base.rb:26:in `translate'
hobo/gems/i18n-0.5.0/lib/i18n.rb:155:in `translate'
hobo/gems/activemodel-3.0.9/lib/active_model/naming.rb:39:in `human'
hobo/gems/hobo-1.3.0.RC2/lib/hobo/extensions/active_model/name.rb:
12:in `human_with_en_pluralization_default'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:147:in
`model_name'
rapid/pages:46:in `block in run_one'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:124:in `block
in each_controller'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:122:in `each'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:122:in
`each_controller'
rapid/pages:15:in `run_one'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:82:in
`instance_eval'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:82:in `run_one'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:71:in `block in
run_for_subsite'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:70:in
`each_pair'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:70:in
`run_for_subsite'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:64:in `block in
run'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:64:in `each'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:64:in `run'
hobo/gems/dryml-1.3.0.RC2/lib/dryml/dryml_generator.rb:25:in `run'
hobo/gems/hobo-1.3.0.RC2/lib/hobo/engine.rb:74:in `block (2 levels) in
<class:Engine>'
hobo/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:430:in
`_run_prepare_callbacks'
hobo/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:
45:in `block in call'
hobo/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:416:in
`_run_call_callbacks'
hobo/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:
44:in `call'
hobo/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in `call'
hobo/gems/actionpack-3.0.9/lib/action_dispatch/middleware/remote_ip.rb:
48:in `call'
hobo/gems/actionpack-3.0.9/lib/action_dispatch/middleware/
show_exceptions.rb:47:in `call'
hobo/gems/railties-3.0.9/lib/rails/rack/logger.rb:13:in `call'
hobo/gems/rack-1.2.3/lib/rack/runtime.rb:17:in `call'
hobo/gems/activesupport-3.0.9/lib/active_support/cache/strategy/
local_cache.rb:72:in `call'
hobo/gems/rack-1.2.3/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
hobo/gems/rack-1.2.3/lib/rack/lock.rb:11:in `call'
hobo/gems/actionpack-3.0.9/lib/action_dispatch/middleware/static.rb:
30:in `call'
hobo/gems/railties-3.0.9/lib/rails/application.rb:168:in `call'
hobo/gems/railties-3.0.9/lib/rails/application.rb:77:in
`method_missing'
hobo/gems/railties-3.0.9/lib/rails/rack/log_tailer.rb:14:in `call'
hobo/gems/rack-1.2.3/lib/rack/content_length.rb:13:in `call'
hobo/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52:in `service'
/home/edson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/
httpserver.rb:111:in `service'
/home/edson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/
httpserver.rb:70:in `run'
/home/edson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/
server.rb:183:in `block in start_thread'

I've google it but can find something similiar with my error

Can someone please give me a tip on this?

Best Regards

Edson

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to