Top "Routing" questions

Questions about mapping URLs to Controllers and Actions.

Routing to static html page in /public

How can I route /foo to display /public/foo.html in Rails?

ruby-on-rails ruby-on-rails-3 url routing
Render controller action from another controller

I think the code is more explicit option A class RedirectController < ApplicationController def index redirect_to :controller => 'posts', :…

ruby-on-rails routing rendering ruby-on-rails-3
Multiple optional route parameters in Express?

I am using Express to handle a route which is in the format of /articles/:year/:month/:day, where year, …

node.js express routing
How to create multilingual translated routes in Laravel

I would like to create application with many translated routes depending on selected language. I've once described it at 3 methods …

php laravel laravel-4 localization routing
I'm getting a "Does not implement IController" error on images and robots.txt in MVC2

I'm getting a strange error on my webserver for seemingly every file but the .aspx files. Here is an example. …

asp.net-mvc exception routing
Devise Custom Routes and Login Pages

I'm trying to get Custom Routes working in my Rails application (Ruby 1.9.2 with Rails 3). This is my config/routes.rb …

ruby-on-rails ruby routing devise partials
Express routes parameter conditions

I have a route on my Express app that looks like this: app.get('/:id', function (request, response) { … }); The …

node.js express routing url-routing
Image equivalent of ActionLink in ASP.NET MVC

In ASP.NET MVC is there an equivalent of the Html.ActionLink helper for Img tags? I have a controller …

asp.net-mvc routing
ASP.NET MVC: url routing vs querystring

I have a page routed like /Comments/Search/3 where i search and display all the comments of the thread "3". I'm …

asp.net-mvc routing query-string
How is RedirectToRoute supposed to be used?

I have this in my Global.asax.cs: routes.MapRoute("BetaAccess", "beta-access", new { controller = "Beta", action = "Index" }); And this in …

asp.net asp.net-mvc routing redirecttoroute