Top "Routes" questions

Questions about mapping URLs to Controllers and Actions.

Rails - link_to, routes and nested resources

As my understanding on nested resources, on edge Rails, should not link_to 'User posts', @user.posts point to /users/:…

ruby-on-rails routes nested-resources
Rails: redirect all unknown routes to root_url

Whenever a user hits the wrong page, rails shows 404.html from the public folder. However, I'd like just to redirect …

ruby-on-rails redirect routing routes url-routing
Set default action (instead of index) for controller in ASP.NET MVC 3

I have a controller called Dashboard with 3 actions: Summary, Details, and Status, none of which take an ID or any …

c# asp.net-mvc asp.net-mvc-3 routes asp.net-mvc-routing
ASP.NET MVC - Pass array object as a route value within Html.ActionLink(...)

I have a method that returns an array (string[]) and I'm trying to pass this array of strings into an …

asp.net-mvc arrays actionlink routes
API Versioning for Rails Routes

I'm trying to version my API like Stripe has. Below is given the latest API version is 2. /api/users returns …

ruby-on-rails ruby-on-rails-3 routes versioning
Go url parameters mapping

Is there a native way for inplace url parameters in native Go? For Example, if I have a URL: http://…

go routes url-mapping
Recognize routes in rails console Session

Say I have a router helper that I want more info on, like blogs_path, how do I find out …

ruby-on-rails routes
Does angular2 support nested states/routes?

Does angular2 support nested states/routes? for example in a view port there are 2 links and on clicking a specific …

routes angular angular2-routing
Algorithm Optimization - Shortest Route Between Multiple Points

Problem: I have a large collection of points. Each of these points has a list with references to other points …

algorithm search routes mathematical-optimization
What is the difference between _url and _path while using the routes in rails

When we define routes in routes.rb using the name like map.some_link.We can use the link in …

ruby-on-rails routes