Cannot setup #9

Closed
kjakub opened this Issue Sep 13, 2012 · 5 comments

Comments

Projects
None yet
3 participants

kjakub commented Sep 13, 2012

/ruby-1.9.2-p320/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:25:in `initialize': can't convert Array into String (TypeError)

config/locales/routes.yml

cs:
cars: 'translated_cars'

routes.rb
end
Dt::Application.routes.translate_from_file('config/locales/routes.yml')

Owner

enriclluelles commented Sep 14, 2012

Could you post the entire stacktrace please?

On Friday, September 14, 2012 at 12:52 AM, kjakub wrote:

/ruby-1.9.2-p320/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:25:in `initialize': can't convert Array into String (TypeError)
config/locales/routes.yml
cs:
cars: 'translated_cars'
routes.rb
end
Dt::Application.routes.translate_from_file('config/locales/routes.yml')


Reply to this email directly or view it on GitHub (#9).

kjakub commented Sep 15, 2012

Loading user extensions...
/home/jk/.rvm/gems/ruby-1.8.7-p370/gems/rack-mount-0.6.14/lib/rack/mount/regexp_with_named_groups.rb:31:in initialize': can't convert Array into String (TypeError) from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/rack-mount-0.6.14/lib/rack/mount/regexp_with_named_groups.rb:31:incompile'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/rack-mount-0.6.14/lib/rack/mount/regexp_with_named_groups.rb:31:in initialize' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/rack-mount-0.6.14/lib/rack/mount/regexp_with_named_groups.rb:25:innew'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/rack-mount-0.6.14/lib/rack/mount/regexp_with_named_groups.rb:25:in new' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:25:ininitialize'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route_set.rb:192:in inject' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:24:ineach'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:24:in inject' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route.rb:24:ininitialize'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route_set.rb:305:in new' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/actionpack-3.0.14/lib/action_dispatch/routing/route_set.rb:305:inadd_route'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/route_translator-1.0.2/lib/route_translator/route_set/translator.rb:28:in translate' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/route_translator-1.0.2/lib/route_translator/route_set/translator.rb:27:ineach'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/route_translator-1.0.2/lib/route_translator/route_set/translator.rb:27:in translate' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/route_translator-1.0.2/lib/route_translator/route_set.rb:29:intranslate_from_file'
from /home/jk/Projects/tviny/config/routes.rb:395
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:236:in load' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:236:inload'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:225:in load_dependency' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:597:innew_constants_in'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:225:in load_dependency' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:236:inload'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:127:in reload_routes!' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:127:ineach'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:127:in reload_routes!' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:120:inroutes_reloader'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/file_update_checker.rb:32:in call' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/file_update_checker.rb:32:inexecute_if_updated'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application/finisher.rb:51
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application/finisher.rb:52:in call' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application/finisher.rb:52 from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/initializable.rb:25:ininstance_exec'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/initializable.rb:25:in run' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/initializable.rb:50:inrun_initializers'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/initializable.rb:49:in each' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/initializable.rb:49:inrun_initializers'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:134:in initialize!' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:77:insend'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:77:in method_missing' from /home/jk/Projects/tviny/config/environment.rb:5 from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:242:inrequire'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:242:in require' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:225:inload_dependency'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:597:in new_constants_in' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:225:inload_dependency'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.14/lib/active_support/dependencies.rb:242:in require' from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/application.rb:103:inrequire_environment!'
from /home/jk/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.14/lib/rails/commands.rb:22
from script/rails:6:in `require'
from script/rails:6

kjakub commented Sep 15, 2012

as you see i tried both ruby 1.8.7 and 1.9.2 ..

Same problem here.

Owner

enriclluelles commented Apr 9, 2013

I'm closing old issues. If it's still happening please reopen, I will address faster this time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment