Questions tagged [nested-routes]

Nested routes allow to capture relationship in your routing.

http://guides.rubyonrails.org/routing.html#nested-resources

462 questions
3
votes
1 answer

Self nested infinite routes in Ember.js

I would like to make a sort of directory structure with Ember.js. Here is an example of how an url can look like: folder/1/folder/44/document/3 As you can see a folder can have multiple folders inside but also documents. I'm wondering how I should…
3
votes
1 answer

get params from nested routing in ember

This is the nested route that i have created in ember. App.Router.map(function(){ this.resource('makes', function(){ this.resource('model', {path: ':division_id'}, function(){ this.resource('zip', {path: ':model_id'}); }); }); …
Anbazhagan p
  • 943
  • 1
  • 14
  • 27
3
votes
2 answers

What are nested routes for in Rails?

I am new to learning Rails and have just encountered nested routes. The example I am looking at involves blog articles and comments. I am trying to undestand what the benefit of nested routes are in Rails. As far as I can tell all the information…
Cu1ture
  • 1,273
  • 1
  • 14
  • 29
3
votes
3 answers

rails routes and custom routing for nested resource

For several projects I need something to simplify my routes to remove the controller name for one of the most important routes. In this case editions, so instead of domain.com/editions/london/venues/the-venue We use…
ere
  • 1,739
  • 3
  • 19
  • 41
3
votes
1 answer

Rails 3.2 nested route on simple form

I have a nested route between object1 and object2. When I try to edit an object2 I got an error: undefined method `object2_path' for #<#Class:0x000000040b2fa8>:0x000000029c8810>. config/routes.rb resources :object1 do resources…
Seoman
  • 783
  • 1
  • 7
  • 18
2
votes
2 answers

Rails post delete path is assigned to GET method instead of DELETE

After I associated the comments & the posts, the post_delete_path started sending a GET request instead of a Delete one when called, showing the following error : The routes.erb file…
Tomax47
  • 31
  • 2
2
votes
1 answer

Nesting Groups of Filters not working in CodeIgniter 4

I'm having hard time to configure nested groups in CI 4. I'm trying to configure the access to routes passing thru a group of filters to authenticate and validate the data that i'm using in the controller. Here's a example of the…
2
votes
0 answers

In Flutter Go_Router, the replace command to use routing to ShellRoute is not working properly

I'm trying to make a application that have a init page and nested routed page. To do that, I use a go_router library. Here is my code. import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() => runApp(const…
Jun
  • 451
  • 4
  • 16
2
votes
1 answer

Rendering a Nested route in React router v6 on a different page

function App() { return ( }/> } > }/>
2
votes
0 answers

how to create nested router using useNavigate

Hello to all dear friends I have a program that, as soon as the system is loaded, the user logs in, and if the login conditions are correct, it enters the next step, which has several menus. It means that at first, he does not see any menu, and…
2
votes
1 answer

How do I use the loader feature from react-router v6.4 on the route's element?

I upgraded to react-router-dom@6.4 and I want to use the loader prop. My router looks like this: const router = createBrowserRouter( createRoutesFromElements( }>
Lior Alon
  • 23
  • 1
  • 4
2
votes
2 answers

React router v6 - Navigating from parent route to nested route without showing the parent route

I'm trying to use nested routes for this code here in my Router.js: return ( } /> }> }/> …
2
votes
2 answers

Nested Route not working in react router dom for my admin dashboard

I have an admin dashboard and I Implemented it nested Route successfully But its does not render the page. when I click it shows this It change the URL but not render the page How i fix this, if anyone know please tell me App.js
vinod sharma
  • 103
  • 5
  • 13
2
votes
1 answer

Why React Component is rendering on same page instead of another?

So All the components are rendering fine on new page except the nested route ones. Also the url changes but the component renders on the same page after all the components of previous page instead of rending on its own page. here is the…
2
votes
1 answer

NextJs nested dynamic routes based on API

I am stuck with Nextjs : I need to create nested dynamic routes based on my (local) data. Here are the routes that I would like to create : .../cars/ -> displays all the categories (sedan, suv, 4x4) .../cars/category/ -> displays…
cajie
  • 23
  • 1
  • 3