Nested routes allow to capture relationship in your routing.
Questions tagged [nested-routes]
462 questions
0
votes
1 answer
AngularJS View not updating on third level nested route with angular-ui-router
I'm trying to nest my routes by three level with ui-router.
I'll include just peace of my routes that is causing an issue, because my routes
are kind of big and don't want to include everything here. Might be pain to read it. But if you think I…

Daniel T.
- 369
- 2
- 6
0
votes
0 answers
How to build ui router nesting where navigation is first state - with multiple "wizards" with 3 steps or more
I'm trying to build a nested view using AngularJS and UI router. The solution should have multiple steps with different questionares. First step is a menu that leads to different wizards (each with 3 or more steps). Problem is the menu should…

Gosu128
- 1
0
votes
2 answers
Rails 4 simple_form_for and nested resources undefined method
I'm getting undefined method error:
undefined method `challenges_path'
I thought I had my form correct, _form.haml
= simple_form_for [@skit, @challenge], html: { class: "form-horizontal" } do |f|
The link to the form above:
= link_to 'Submit',…

hellomello
- 8,219
- 39
- 151
- 297
0
votes
1 answer
How to properly route a nested resources destroy action?
So I have a nested resource Items belonging to invoices and I am trying to destroy Items by deleting them when Invoices are created/edited.
I can delete records but when I do so the record gets deleted form the db but page does not refresh or go…

Aloalo
- 165
- 17
0
votes
2 answers
cant figure out how to setup this routing using shallow nesting
I'm having my routes clash which I anticipated but i cant figure out how to shallow nest a resource to get my desired result. (or at least i think shallow nesting is what needs to be done)
I'm having these 2 urls clash
category_item show page…

Rob
- 1,835
- 2
- 25
- 53
0
votes
2 answers
Pointing the form_tag to the Update Action of the Controller
I have this in my view; I made the "new" and "edit" views similar with only the following snippet which dictates if the form is a patch or a post.
<% @selected_holiday[:id].present? ? (current_method = :patch) : (current_method = :post) %>
<%=
…

james
- 515
- 4
- 14
0
votes
1 answer
How to remove the :id Part when doing a Concern
My routes file contains:
concern :generic_table do
get 'search_suggestions' => 'search_suggestions'
end
get 'human_resources/' => 'human_resources#index'
namespace :human_resources do
get 'settings/' => 'settings#index'
…

james
- 515
- 4
- 14
0
votes
0 answers
Better way of Getting Back to Application Controller under Namespaced Controllers under the "link_to" Tag
I am trying to call an action from a controller 2 steps up the folder structure namespace
<%= link_to( "Reset Search" ,
{:controller => "../../application",
:action => 'reset_search',
:reset_search_redirect…

james
- 515
- 4
- 14
0
votes
1 answer
Rails 4 - routes for nested resource
I am trying to make a navbar in my rails 4 app.
When a user registers, I want to automatically build a profile for that user.
I have models for user and profile. The associations are:
user has_one profile
profile belongs_to user
I'm struggling with…

Mel
- 2,481
- 26
- 113
- 273
0
votes
1 answer
Routing issue on Nested Resource Custom Update Method
Im Building out a Rails app in Rails 4 Ruby 2
Background:
I have built a custom Method in a controller that allows me to update a table by button click.
I had some help building out the button, however it only updates the first id, in the nested…

Shawn Wilson
- 1,311
- 14
- 40
0
votes
1 answer
How can I differentiate between 2 routes in Ember when resetNamespace: true?
I'm putting together an Ember 2.2 project and I have a modal that I want to open from 2 different places (i.e. show and index). My Router looks like this:
Router.map ->
@route 'rules', path: '/', ->
@route 'index', path: '/', ->
@route…

spinlock
- 3,737
- 4
- 35
- 46
0
votes
1 answer
How to group/nest routes in rails like you can in laravel?
I'm switching from using a laravel php framework to a rails framework and cannot figure out how to get nested routes working in rails like it did in laravel. In laravel it would work like this:
Route::group(['prefix' => 'healthandwelness'],…

user3688241
- 3,015
- 2
- 14
- 13
0
votes
2 answers
Nested Namespace Update Action No route matches [PATCH]
Been trying to progress through rails using namspacing, there's been similar questions I think my problem is everything is namespaced.
I tried adding a class to the models (did that before with devise user with nest object and worked) but it…

bradpotts
- 329
- 1
- 14
0
votes
2 answers
Rails 4: Polymorphic associations - is this a poor approach if one model is nested within the other?
I have an academic Q/A site which allows users to reference their questions (Questions) and answers (Answers) with scientific publications which are a third model, Citations.
Answers are a nested resource in Questions. At first I thought a…

GhostRider
- 2,109
- 7
- 35
- 53
0
votes
1 answer
Rails Nested Resource not creating from Array
I am trying to create a simple data puller from the yahoo finance gem. I have a nested route setup for Security that has_many Price
The Price controller is as follows:
class PricesController < ApplicationController
before_action :set_security
…

M. Wood
- 63
- 7