Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7421445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:24:36+00:00 2026-05-29T08:24:36+00:00

This is a design problem that I am trying to figure out. I will

  • 0

This is a design problem that I am trying to figure out. I will explain what I have right now, and what I would like to have:

1. Actual design

I have a defined a resources :users and by doing so I have defined different actions such as new, create and update in the Users controller. This is working as expected by following urls like users/new , users/:id, etc…
Now I want to go one step forward, and I want to be able to do the following…

2. What am I looking for

I want to be able to have a route like this:

users/overview/profile - This should be equivalent to `users/:id` (show action) 
users/overview/network - This should be equivalent to users/:id/network (list of networks for that user)

3. My idea

My first idea was to define something like this:

resource :users do
 namespace :overview do
  resource :networks
 end
end

But this would work for urls like: users/:id/overview/networks and I don’t want the user id to be shown in the URL. So my questions are:

1 – How can I deal with users/overview/networks instead of users/:id/overview/networks , assuming that I can get the user id from session.

2 – How can I be able to manage URLs like this: users/overview/profile where actually a profile is just the show method of users/:id Right now I have defined all the actions in the users controller and everything is working fine (new,delete,create,update…) I just don’t know how to move into that “namespace” overview/profile

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:24:37+00:00Added an answer on May 29, 2026 at 8:24 am

    I have tried same thing you tried, and it is returning your desired results only, not sure what is your problem. Posting rake routes result here.

    users_overview_networks POST        /users/overview/networks(.:format)         {:action=>"create", :controller=>"overview/networks"}
    new_users_overview_networks GET         /users/overview/networks/new(.:format)     {:action=>"new", :controller=>"overview/networks"}
    edit_users_overview_networks GET         /users/overview/networks/edit(.:format)    {:action=>"edit", :controller=>"overview/networks"}
    GET         /users/overview/networks(.:format)         {:action=>"show", :controller=>"overview/networks"}
    PUT         /users/overview/networks(.:format)         {:action=>"update", :controller=>"overview/networks"}
    DELETE      /users/overview/networks(.:format)         {:action=>"destroy", :controller=>"overview/networks"}
    users POST        /users(.:format)                           {:action=>"create", :controller=>"users"}
    new_users GET         /users/new(.:format)                       {:action=>"new", :controller=>"users"}
    edit_users GET         /users/edit(.:format)                      {:action=>"edit", :controller=>"users"}
    GET         /users(.:format)                           {:action=>"show", :controller=>"users"}
    PUT         /users(.:format)                           {:action=>"update", :controller=>"users"}
    DELETE      /users(.:format)                           {:action=>"destroy", :controller=>"users"}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this design which I cannot seem to get right, I would like
I've been trying to figure this out for a couple days now. I have
I'm trying to figure out what is the best general design for applications that
I've been trying to figure this out for 2 days now, and before anyone
I'm trying to figure out how to design a small application more elegantly, and
I am trying to write some code that will function like google calendars quick
I have been struggling with this problem for a few days now and I
I have looked on line for information that would help me solve a design
I am having a hard time trying to figure out if the following design
I'm trying to figure out how to best design Mongo DB schemas. The Mongo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.