Top "Routes" questions

Questions about mapping URLs to Controllers and Actions.

Angular js - show/hide loading gif every new route

I'm trying to toggle (hide/show) a loading gif on every new route, so my logic would be: routeChangeStart = show …

javascript angularjs toggle loading routes
Rails Namespace vs. Nested Resource

Let's say my app has two models, Foo and Bar. Foo optionally belongs_to Bar. Right now I can look …

ruby-on-rails ruby-on-rails-3 namespaces routes nested-resources
rails devise, no route matches logout

Though there're lots of similar questions, i've searched for it for hours but still can not fix it. Env rails 3.0.9 …

ruby-on-rails devise logout routes
Devise logged in root route rails 3

Heyya guys. So i thought about this coolio idea, if you are logged in then you get some sort of …

ruby-on-rails ruby routes devise
Change protocol to https in all rails helpers

Rails 3.1+ I want my url helpers to use the https protocol without having to specify it in every helper I …

ruby-on-rails ruby-on-rails-3 https routes helpers
Rails 3 nested resource route problem as form_for

I have nested resources like this in my routes.rb - (my rake:routes gist) namespace(:admin) do resources :restaurants …

ruby-on-rails-3 routes form-for
form_for undefined method `model_name' for ::ActiveRecord_Relation:Class

I have been having issues with form_for rendering. I want to have a _form.html.erb partial that deals …

ruby-on-rails routes form-for
AngularJS: Read route param from within controller

How can a parameter from an URL be read within an AngularJS controller? Let's say I have an URL like …

variables angularjs controller routes url-parameters
Angular 4 conditional routing/components

UPDATE: See below So I have an app where I have two different organisations, when a user is using the …

angular typescript routes routerlink router-outlet