Top "Routing" questions

Questions about mapping URLs to Controllers and Actions.

Rails change routing of submit in form_for

I have a model 'Article' and a model 'Ratings' nested within articles. /articles/123/ratings I want to change the routing …

ruby-on-rails ruby ruby-on-rails-3 routing form-submit
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
AngularJs Routing with parameters

Can someone explain how I can route to a Url using parameters? E.g. id like to click on a …

angularjs routing ngroute
Routing with an optional parameter

I added in the route file: map.show_book "/show_book/:name/year/:year", :controller => "book", :action => "show_…

ruby-on-rails routing rails-routing ruby-on-rails-2
Apache Camel conditional routing

I have a service which has two operations. RegisterUser UpdateUser I have a camel rout: <camel:route id="myRoute"&…

java routing cxf apache-camel apache-karaf
Difference between Access Point / Station and Bridge / Router?

In my current network setup, I have a Cisco RVS4000 router that feeds into a 48 port ethernet switch and a …

networking routing router access-point
ASP.NET 4.0 URL Routing HTTP Error 404.0 - Not Found

I have implemented URL routing in ASP.NET 4.0 using following route. routes.MapPageRoute( "NewsDetails", // Route name "news/{i}/{*n}", // Route …

routing asp.net-4.0
Angular2 Routing. The requested path contains undefined segment at index 1

I have a issue with routing in Angular 2. I call router.navigate from an action into a datatable. The rare …

angular routing webpack datatables navigation
How do I get Route name from RouteData?

I have several routes defined in my Global.asax; When I'm on a page I need to figure out what …

asp.net routing webforms url-routing
:as in rails routes.rb

In config/routes.rb, I tried both: root :to => 'things#index', :as => 'things' and root :to => 'things#…

ruby-on-rails ruby ruby-on-rails-3 routing