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 4623182
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:56:59+00:00 2026-05-22T02:56:59+00:00

Picking up Rails 3 for my next web app. Basically I have a set

  • 0

Picking up Rails 3 for my next web app.

Basically I have a set of nested resources.

Users => Apps => Form

I spent some time earlier using sessions to hold an app_id so I could access that apps forms.

But I then discovered nested routes in Rails 3…. so which one is best? I might have another layer after Forms so it would be nested 3 or 4 times. I ran into this resource while reading rails guides http://weblog.jamisbuck.org/2007/2/5/nesting-resources and am on the fence about how to proceed.

Should I use the nested resources with rails or just start using sessions since I may have a large amount of nested resources?

  • 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-22T02:57:00+00:00Added an answer on May 22, 2026 at 2:57 am

    A session is closed as soon as the user closes his browser. So if you want to store the app_id only temporarily and only for this currenct user, sessions are your friend.

    If you want working permalinks and the link has nothing to do with the actual user, you should use the nestes resources.

    E.g. users/1/apps/5/... if user 1 always has these apps you should not handle this with your sessions. If you want that only user 1 can access users/1/apps/5 you could handle this with sessions/cookies and your login-system.

    If you worry about the length of the URLs because of the depth of the resources just keep an eye on what is understandable and easy to read. I don’t know the aim of your web app, so I can’t tell if it is reasonable to have ‘form’ as a resource of ‘Apps’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have managed to setup autocomplete field for my rails app. What I'm trying
My super simple backbone app is not picking up a form submission and acting
I'm in the middle of picking tools to load test my Ruby on Rails
I have a rails model that I am adding validations to and I seem
Alright, I need some advice and best practices from some Rails people. I'm fairly
We have an in house developed web-based admin console that uses a combination of
I have a Rails Model: ruby-1.9.2-p0 > NavItem => NavItem(id: integer, item_identifier: string, description:
I am new to C#. I have a menu in a console app. Now
I'm picking up jQuery and jQuery UI and I would like some suggestions on
i have this picking function but it doesn't seems to work. the function should

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.