Topic: routing problem with active admin and devise gem

i have a rails application having active admin and devise gem

In admin page  ie localhost:3000/admin , I have a menu for parner whichis created using active admin.

Also there is a user table (user.rb inside model) this user table has an attribute parner_id.

I want to take as localhost:3000/admin/partner/id/users/id..........what to do for this.

my partner.rb file has the code


class Partner < ActiveRecord::Base
validates_presence_of :name,:address_line1,:city,:state,:zip,:country
belongs_to :category
has_many :users
end


My user.rb file is


class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable,:confirmable
  validates_presence_of :fname,:lname

end

my routes.rb has  nesting of resource as


resources :partners do
resources :users
end

Any help will be highly appreciated as a beginner