routing

Transportation Web App - utilizing google or bing map api

I have a MS SQL database with a table that stores geocoded "PICKUP" locations which I eventually may or may not want to display depending on search filters the user selects. These are not static like a brick and mortar store locations. They are added by the applications users 24 hrs a day. The life of a "LOAD" is less than 24 Hrs. Once i...

Routing to the actions with same names but different parameters

I have this set of routes: routes.MapRoute( "IssueType", "issue/{type}", new { controller = "Issue", action = "Index" } ); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Hom...

How can I setup a simple custom route using Zend Framework?

I'm looking to setup a custom route which supplies implicit parameter names to a Zend_Application. Essentially, I have an incoming URL which looks like this: /StandardSystems/Dell/LatitudeE6500 I'd like that to be mapped to the StandardsystemsController, and I'd like that controller to be passed parameters "make" => "Dell" and "model"...

Multiple Controllers with one Name in ASP.NET MVC 2

I receive the following error when trying to run my ASP.NET MVC application: The request for 'Account' has found the following matching controllers: uqs.Controllers.Admin.AccountController MvcApplication1.Controllers.AccountController I searched the project for MvcApplication1.Controllers.AccountController to remove it, but I c...

WCF Business logic handling

I have a WCF service that supports about 10 contracts, we have been supporting a client with all the business rules specific to this client now we have another client who will be using the exact same contracts (so we cannot change that) they will be calling the service exactly the same way the previous client called now the only way we c...

Rails: How to produce 404 or redirect upon undesired url exploitation?

I want to hide the urls for editing users and their profiles behind safer and meaningful urls. For instance, I want /user/13/edit to be /settings/account and /user/13/profile/edit to be /settings/profile. I managed to achieve that, but for that I had to load the user information from the current_user bit from the session. Like so: # u...

Adding RESTful route to Rails app

I'm reading these two pages resources Adding more RESTful actions The Rails Guides page shows map.resources :photos, :new => { :upload => :post } And its corresponding URL /photos/upload This looks wonderful. My routes.rb shows this map.resources :users, :new => { :signup => :get, :register => :post } When I do: [~/my_app...

Is it possible to route heroku-rails-app to a subdirectory of my custom domain?

I want to setup a rails app on heroku that is part of a website. The website which is hosted on a different server explains the usage of the app, shows a tour, plans, contains a blog on related stuff and so on. I want to route to my_domain/app and the app should respond to that url. The custom_domain add-on doesnt allow to enter directo...

Default Controller for an Area?

This is sort of a duplicate of http://stackoverflow.com/questions/2045761/trouble-setting-a-default-controller-in-mvc-2-rc-area But his answer doesn't satisfy me, because it doesn't work. I have the following /Areas/TestArea/Controllers/HelloController /Areas/TestArea/Views/Hello/Index /Controllers/HomeController /Views/Home/Index ...

How to get all active parameters in ASP.NET MVC (2)

Hi! I was wondering whether there is a way to create an ActionLink or similar, that changes only a few parameters of the actual query, and keeps all the other parameters intact. For example if I'm on an URL like http://example.com/Posts/Index?Page=5&OrderBy=Name&OrderDesc=True I want to change only the Page, or OrderBy parameter...

Rails RESTful routs without #new, rspec trouble

I'm currently writing a Rails app, and hit a somewhat strange quirk. I have a controller PermissionsController, which is mainly for display purposes at the moment. So my routing is locked down: map.resources :permissions, :only => [:index, :show] Unfortunately, when writing the tests, one of the routing tests fails: it "does not reco...

Custom 500 Error Page with ASP.NET 3.5 SP1 WebForms (not MVC) and Routing

Could someone share the technique to get a custom 500 error page displaying in ASP.NET 3.5 WebForms with System.Web.Routing hooked in. I was able to get a 400 Error Page working by creating a catch-all route but don't understand the technique for showing a custom 500 error page. I would like if the URL remained for the page that blew...

Speed Problem with Wireless Connectivity on Cisco 877w

Having a bit of a weird one with my local LAN setup. I recently installed a Cisco 877W router on my DSL2+ connection and all is working really well.. Upgraded the IOS to 12.4 and my wired clients are streaming connectivity superfast at 1.3mb/s. However, there seems to be an issue with my wireless clients - I can't seem to stream any da...

Rails - Seeking a Dry authorization method compatible with various nested resources

Consensus is you shouldn't nest resources deeper than 1 level. So if I have 3 models like this (below is just a hypothetical situation) User has_many Houses has_many Tenants and to abide by the above i do map.resources :users, :has_many => :houses map.resorces :houses, :has_many => :tenants Now I want the user to be able edit both ...

MVC ActionLink generating NON-Restul URL AFTER adding constraints

Hello I have a custom route without constraints that generates a Restful URL with an ActionLink. Route - routes.MapRoute( "Blog", // Route name "Blog/{d}/{m}/{y}", // URL with parameters, new { controller = "Blog", action = "Retrieve" } Generates - http://localhost:2875/Blog/12/1/2010 From - <...

has_many, belongs_to and comment forms

I'm having two models: Snippet and SnippetComment. These also have their own controllers, as well as views. In /app/views/snippets/show.html.erb I have a form that starts like this: <% form_for(@new_snippet_comment) do |form| %> SnippetComment belongs to one Snippet, and a Snippet belongs to one User. This means that I have this routi...

remote_function keeps adding authenticity token on GET requests

Hi, I got the problem similar to this post here: https://rails.lighthouseapp.com/projects/8994/tickets/106-authenticity_token-appears-in-urls-after-ajax-get-request routes.rb map.namespace(:admin, :active_scaffold => true) do |admin| admin.resources :regions, :shallow => true do |region| region.resources :birds, :collect...

Why doesn't a URL with two hyphens ( in one segment ) match a Route in my Route Table?

I'm trying to resolve this URL Route: Route articlesByCategory = new Route("articles/c{cid}-{category}", new Handler); However, it seems like the following url won't resolve to this route: // doesn't work www.site.com/articles/c24-this-is-the-category-title // This works www.site.com/articles/c24-category I assume it has to do wit...

Exclude routing parameters in VaryByParam for Asp.Net 4

I have a routing setting in my global.asax file: routes.MapPageRoute("video-browse", "video/{id}/{title}/", "~/routeVideo.aspx"); My routeVideo.aspx page has caching setting: <%@ OutputCache Duration="10" Location="ServerAndClient" VaryByParam="id" %> But when I request http://localhost/video/6/example1 and http://localhost/video/6...

Where should I define custom routes in my ZF 1.10 app?

With the new Zend_Application/Zend_Application_Bootstrap classes I'm confused as to where I should be applying my custom routes. For example, at the moment I have one route: protected function _initRouter() { $router = new Zend_Controller_Router_Rewrite; $route = new Zend_Controller_Router_Route('news/:id', array('contr...