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

undefined method in split function of rails 3 #7

Open
coderhs opened this issue Jul 5, 2013 · 0 comments
Open

undefined method in split function of rails 3 #7

coderhs opened this issue Jul 5, 2013 · 0 comments

Comments

@coderhs
Copy link

coderhs commented Jul 5, 2013

My version of rails is 3.2.13

When i run rake js:routes, i get the following error:

rake aborted!
undefined method `split' for #<Journey::Path::Pattern:0x000000077b8a20>
/home/hsps/crm-sages/lib/tasks/js.rake:63:in `block in generate_routes_for_rails_3'
/home/hsps/crm-sages/lib/tasks/js.rake:61:in `generate_routes_for_rails_3'
/home/hsps/crm-sages/lib/tasks/js.rake:8:in `block (2 levels) in <top (required)>'
Tasks: TOP => js:routes
(See full trace by running task with --trace)

I fixed this issue by changing

route.path.split("(")[0]

to

route.path.spec.to_s.split("(")[0]}
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

1 participant