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

Redirect route results in error #38

Open
lassebunk opened this issue Oct 7, 2012 · 0 comments
Open

Redirect route results in error #38

lassebunk opened this issue Oct 7, 2012 · 0 comments

Comments

@lassebunk
Copy link

Hi,

I have the following in config/routes.rb:

match "test" => redirect("/test2"), :as => :test

This results in the following error:

/Library/Ruby/Gems/1.8/gems/i18n_routing-0.6.1/lib/i18n_routing_rails32.rb:200:in `dump': no marshal_dump is defined for class Proc (TypeError)
    from /Library/Ruby/Gems/1.8/gems/i18n_routing-0.6.1/lib/i18n_routing_rails32.rb:200:in `match'
    from /Users/xx/app/config/routes.rb:63

Without the redirect route it works fine, and also when using other localized routes.

Hope you can help.

/Lasse

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