route

Annoying problem with routes in Kohana 3

When I access my site on MAMP like so, it works great localhost/site/about-us/ When I upload it to my remote server, and access it like this http://www.server.com/site/about-us/ all requests go back to the 'default' set up in bootstrap.php. Here is my route setting. Route::set('default', '(<page>)') ->defaults(array( ...

How do I access a route parameter in my ASP.NET MVC view?

I have an URL like this /home/action/id How can I access this id in view? ...

ASP.NET MVC 2 / Localization / Dynamic Default Value?

Hello In an ASP.NET MVC 2 application, i'm having a route like this: routes.MapRoute( "Default", // Route name "{lang}/{controller}/{action}/{id}", // URL with parameters new // Parameter defaul...

How to display a route between two geocoords in google maps? (Android)

Hi guys, I'm just writing an App for displaying the route between two coords (lat, long) in google maps view. Displaying an single coord (even with a marker) works fine, but how to do this with 2 ones and the route between them? I must admit that I'm quite new to Android and the maps-API... ...

How does vimeo route it's urls?

I'm wondering how vimeo manages to retain its parameters using routing, for example in vimeo, a search uri looks like this: http://vimeo.com/videos/search:google/, which will return a variable in this case google. This is easy enough to do, can simply use routes and explodes in php to get the data you require into a useful array, what ...

Asp.Net MVC - Area Route - UrlHelperExtensions

I still Create Extension methods of UrlHelper to generate your url from Route as per the Best Practices post by Kazi Manhur. I'm curious to know if a better way emerged with MVC 2 and Areas (which I now use)? So basically in your Html call a url helper extension which return a string anyhow that match an existing route. Something does...

ISA Route Add Question

I asked this over at Serverfault.com but figured actually, you guys here may be more likely to have the knowledge to help. Hi All, I have a situation where I have and ISA 2006 server (on Win2k3) that has an internal and an externaly facing NIC's. All works fine but I need to add a couple of routes for the following reason: Our monito...

ASP.NET MVC URL/Routing question

Hello! I am an MVC newbie. I'm trying to get my URLs to look like this: /Corporate/Users/Edit/1 /Corporate/Stores/Edit/17 /Corporate/Contacts/Edit/17 /Store/Contacts/Create /Store/Products/Edit/29 Pretty much like plain-vanilla urls, except with a user type at the front. I'm running into a lot of problems with duplicat...

ASP.NET MVC: Route to URL

What's the easiest way to get the URL (relative or absolute) to a Route in MVC? I saw this code here on SO but it seems a little verbose and doesn't enumerate the RouteTable. Example: List<string> urlList = new List<string>(); urlList.Add(GetUrl(new { controller = "Help", action = "Edit" })); urlList.Add(GetUrl(new { controller = "Help...

Add Route through a VPN in Mac OS X

Is there an equivalent to add route in Mac OS X? On my Windows machine I can connect to our web server via VPN and then create a route on the to so we can access the MSSQL Server and make Remote Desktop Connection without have to enable remote gateway. This let's us develop and test in the same session without disconnecting. Now that I...

setting more than one RouteConstraint on route parameter

here are code I'm using to do, but compiler says: An anonymous type cannot have multiple properties with the same name context.MapRoute("RouteName", "statics/category/{fileName}", new { controller = "myController", act...

Can a WCF ServiceRoute Route Prefix contain a path value?

Currently I use this: RouteTable.Routes.Add(new ServiceRoute("API", new WebServiceHostFactory(),typeof(MySite.Web.MyServiceV1))); To make this url point to the MyServiceV1.SVC MySite.com/API I want to use a Prefix which contains a / in it but it doesn't seem to work. RouteTable.Routes.Add(new ServiceRoute("API/V2", new WebService...

Accessing rails routes in javascript

Hi Can anyone explain how i can access the rails routes/names routes in javascript ? The following are some of the things i tried http://github.com/jsierles/js_named_routes. but no luck. ...

Script for add route

Scenary SO Windows 7 I need to connect to remot host via cisco vpn. Sometimes the host destination network is the same of local network. Example (Partial output of ipconfig command): Ethernet adapter Cisco Vpn Adapter: IPv4 Address. . . . . . . . . . . : 192.168.100.12 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Wireless...

[Blackberry/J2ME] How to draw a route between two locations on CloudMade

Hi, I'm trying to use CloudMade's route service. I want to display a Route between two locations in my standalone application, but there isn't any tutorial in CloudMade's website that handle this. How can I display the Route? Appreciate any help. ...

Where is the new_post_path, edit_post_path, posts_path ... lies in the source? I need to override them

Where is the new_post_path, edit_post_path, posts_path ... lies in the source? I need to override them. my env: ruby-1.9.2-preview rails-3.0.0.beta3 ...

How does route finding software work?

I'm asking at a pretty high, language independent, level. How does route finding (as found in Google Maps 'Get directions' or a GPS) work? I can't believe it tries every conceivable route and chooses the shortest/fastest etc. There must be some logical way of finding the best route given a start and end point. Any sort of explanation w...

Passing and receiving routedictionary values in mvc2

I have a link in my action like this <%: Html.ActionLink("View Data","Index","MyItem", new {itemId=Model.itemId}, null)%> now in my newItem controller in its index action how do I retrieve this itemId, so far I have tried this public ActionResult Index() { RouteData rd = this.RouteData; var list = from...

Route Map in iPhone

Does iPhone sdk supports route between two places on Map? I have searched many times. But not able to find any reference. Even on apple iphone development forums, there is no such thing available. I have done this functionality using google map url. In which I have to pass source and destination latitude & longitude. I am getting the m...

drawing routes with google earth js api.

Hi People, I'm starting with a project that use GM api. I need to create routes form the tracklogs from vehicles, but for some reason doesn't work. This is the code, I'm calling the startMap function first, and then addRouteWaypoints. The map and waypoinps are working fine, but the route is not displayed. /// var map = null; //-----...