Top "Routes" questions

Questions about mapping URLs to Controllers and Actions.

MVC 3 How to use MapRoute

Could someone show me how to use the MapRoute method? I have tried creating my own routes, but it's not …

c# asp.net-mvc-3 routes maproute
Rails 3 - Restricting formats for action in resource routes

I have a resource defined in my routes. resources :categories And I have the following in my Category controller: def …

ruby ruby-on-rails-3 resources routes dry
Route to static file in Play! 2.0

I'm trying to make a route to a specific static file but everything I'm trying ends with an error. I've …

playframework routes playframework-2.0 static-files
The parameters dictionary contains a null entry for parameter 'id' of non-nullable type

I'm trying to retrieve data from my db via the id parameter in my default route: routes.MapRoute( "Default", // Route …

c# asp.net-mvc routes actionresult
Laravel 5 how to validate route parameters?

I want to validate the route parameters in the "form request" but don't know how to do it. Below is …

laravel laravel-5 routes laravel-validation laravel-request
rails singular resource still plural?

I have a search route which I would like to make singular but when I specify a singular route it …

ruby-on-rails ruby-on-rails-3 routes custom-routes singular
Laravel: Get URL from routes BY NAME

I'm trying to do something a little different and I couldn't find any way to do it. Maybe my approach …

php laravel laravel-5 routes laravel-routing
How to store routes in separate files when using Hapi?

All of the Hapi examples (and similar in Express) shows routes are defined in the starting file: var Hapi = require(…

node.js routes hapijs
How do I use Rack::Proxy within Rails to proxy requests to a specific path to another app

I found this great blog post on how to use Rack::Proxy as a separate proxy app. The article explains …

ruby-on-rails-3.1 proxy rack reverse-proxy routes
How to show travel DIRECTION ARROW in Google Map Javascript API when using POLY LINE?

Using Google maps javascript API i want to draw arrow on top of the poly line so when the user …

javascript google-maps routes polyline