Comments (5)
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).
from route_translator.
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:in
compile'
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:in
new'
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:in
initialize'
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:in
each'
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:in
initialize'
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:in
add_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:in
each'
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:in
translate_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:in
load'
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: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:in load_dependency' 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/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:in
each'
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:in
routes_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:in
execute_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:in
instance_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:in
run_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:in
run_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:in
send'
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:in
require'
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:in
load_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:in
load_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:in
require_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
from route_translator.
as you see i tried both ruby 1.8.7 and 1.9.2 ..
from route_translator.
Same problem here.
from route_translator.
I'm closing old issues. If it's still happening please reopen, I will address faster this time
from route_translator.
Related Issues (20)
- Routes not found error after upgrading to Rails 6.0 from Rails 5.1 HOT 4
- Transfer ownership HOT 1
- Two routes for same locale HOT 1
- Unable to translate routes with custom param HOT 7
- Advice Request: route_translator & Accept-Language request header HOT 4
- Missing translated routes in development after routes_reloader.reload! HOT 6
- Require MFA to publish gems HOT 1
- Bump version rubygems for Rails 7 support HOT 1
- Feature request: custom translation for nested resources HOT 5
- How to translate with dynamic root url HOT 1
- RSpec: cannot call non-localized routes name HOT 5
- Optional route params not included in translated URL HOT 2
- Idea pitch: Generate only unique routes and use I18n.fallbacks to generate as little routes as needed HOT 1
- Question: "/" path locale always English HOT 7
- Issue with partial implementation of route_translator HOT 3
- locale path segment not added to translated route (multiple languages on the same host with host locale translation enabled) HOT 3
- undefined method `eager_load!' for RouteTranslator:Module (NoMethodError) HOT 8
- Bug: en named route always generated ignoring config.available_locales HOT 2
- Translating scopes HOT 1
- Bug: unlocalized path name doesn't include locale HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from route_translator.