gregbell/active_admin — Issue #960: Scoped routes broken in global navigation
Author: djonasson
Created: 2012-02-01 17:49:58+00:00
State: open

All my routes are scoped by language like this:

MyApp::Application.routes.draw do
scope '(:language)' do
ActiveAdmin.routes(self)
end
end

In my ApplicationsController.rb I have implemented the url_options method like this:

def url_options
{ :language => current_language }.merge(super)
end

The current language shows up fine in the action links (default_actions) but in the main menu the language is ignored causing my site to change language when navigating the menu.

Anyone else experiencing similar problems?