Nested routes allow to capture relationship in your routing.
Questions tagged [nested-routes]
462 questions
0
votes
3 answers
Rails Routing Error: Uninitialized Constant with Nested Resources
As rake routes gives the exact route I visited, the page shows
Routing Error uninitialized constant TasksController Did you mean? AppsController
In routes.rb I wrote
resources :users do
resources :tasks do
collection do
post…

cweih
- 125
- 1
- 9
0
votes
1 answer
The scoping nested resources feature of the Laravel Nested Resources will not checking the child model is belongs to the parent model or not
I am working on the Laravel 8 application where I have nested resources URL.
According to my routes definition, A user can have multiple locations and each location can have multiple contents.
Route::resource('locations',…

Sachin Kumar
- 3,001
- 1
- 22
- 47
0
votes
2 answers
Flutter: nested routes scaffold not showing back navigation
I want to leverage nested routes in Flutter. I think I managed what I wanted apart from one thing. My nested "home" route does not show back navigation in AppBar, however hardware button will get me to previous route. Perhaps I'm not using nested…

user3056783
- 2,265
- 1
- 29
- 55
0
votes
1 answer
Rails nested resource params in reverse order
I've spent a while trying to debug this behavior unsuccessfully, so I'm hoping for help figuring out why my nested resource parameters appear to be getting included in the URL in the wrong order. For some reason, adding and deleting lessons for a…

Greg
- 113
- 8
0
votes
1 answer
React router blank page for subroutes on apache
I have an app created with create-react-app that I want to deploy in my apache server.
When I tried to access my react app running on my server, i had an error 404 on every routes created with react-router. Then i added a .htaccess file in my app…

prime
- 25
- 4
0
votes
0 answers
React Router nested route
I'm learning react by developing a simple app.
I've implemented a protecred route after login. Once loggedIn I'm redirected to the Hompage that present a navbar with two cascading dropdown and a sidebar with an accordion
Selecting the first dropdown…

b81
- 69
- 1
- 10
0
votes
1 answer
Rails complex routting
How can I set a route and an endpoint in my controller such that a GET request to /api/users?phone_number= displays details of the user whose phone number was supplied.
UsersController
def index
@users = User.all
render json: @users
end…

Sekou Dosso
- 1
- 2
0
votes
2 answers
Rails 3 Nested Resources Edit/Update method - routing error
I need some help with nested resource actions. I have three nested resources: Jobs, Questions and Answers. I am currently only trying to get the edit/update method to work for the questions controller. The relationship is as so: Jobs has_many…

Igrabes
- 244
- 4
- 15
0
votes
0 answers
getting issue while working with nested routes in react
I am getting issues while rendering contact data.
Here the case is when I click the continue button in my app it triggers the checkoutContinuedHandler() function that results in a change of URL but the ContactData component is not rendered and my…

Vikas Tiwari
- 1
- 2
0
votes
0 answers
How to update a nested form - Ruby on Rails
I am having an issue with my update method in my recipes controller where I cannot create a new category. Category is a nested resource within recipes. This is my update method
def update
if current_user.id != @recipe.category.user_id
…

Lindsay Kinn
- 1
- 1
0
votes
1 answer
How to declare a deep nested resource in activeadmin?
I have three resources in ActiveAdmin i.e User, Order, and OrderItems.
User => has_many :orders
User => has_many :order_items, through: :orders
I want OrderItems to be nested inside Users so I can have these…

sgk
- 159
- 1
- 13
0
votes
1 answer
Using static folders with nested routes in Node JS
I have trouble getting files from the correct folders when using a nested route in Node JS.
In a standard route like:
router.get('/something', (req, res) => {
res.render('something.html')
})
This
inside…


DonSeverino
- 121
- 10
0
votes
1 answer
VueJS component called 2 times in nested route using Laravel
I have a Laravel App and I'm trying to add a vuejs form. The form has 3 differents steps so I want to use vuejs nested routes.
Problem is the parent component is called 2 times.
OnboardingForm.vue : parent view, calling child components.
…

lbrs
- 76
- 6
0
votes
1 answer
Can a UI be kept rendered even if it does not match its react-router route?
would anybody here know if it's possible to do something like what happens in this screen recording? https://www.dropbox.com/s/snhhbeq8knk5dyc/modal-window-routing.mp4?dl=0
It's about routing a modal window, while keeping the UI underneath intact.…

Ernesto
- 3,837
- 6
- 35
- 56
0
votes
2 answers
React Router nesting
i'm trying to use nested routing in react router. But my nesting routig not working. If that's make diffrence i'm using Typescript.
//This is working
//This is not working

Ali Hadi Ozturk
- 27
- 4