routing

Using URI-fragments in Ruby on rails routing

RoR application can generate URL such as /post/10. But now I want to create a site, which works with URI-fragments like gmail. For example gmail uses the following URLs https://mail.google.com/mail/?shva=1#sent https://mail.google.com/mail/?shva=1#label/books I need to generate URL such as /#/post/10, where controller = "post", action ...

cakephp routing problem, plugin routing works but not others

I'm having a strange routing problem with a site I just uploaded, and I've made a number of changes to test what's happening. It doesn't make any sense. My setup is: I'm using one plugin, which I've included all the routing in the routes.php file. I've also included the routes for two other controllers, 'events' and 'updates' they ...

Symfony: Special routing for mobile browsers

Is there any way that I can detect browser type on routing and use specific controller? I want to be able to do something like this in routing.yml: mobile: url: /* requirements: browser: mobile ...

Using URL Routing for Web Forms and StopRoutingHandler for Favicon

I have a website where I need to add a Favicon.ico. The site is written using ASP.NET 3.5 Web Forms with Routing. The issue is that the Favicon link always returns a page not found error. This is because the Routing does not know where the link for Favicon.ico should go to so it returns the Not Found page. I have tried to add a Sto...

ASP.NET MVC 2 RC2 Routing - How to clear low-level values when using ActionLink to refer to a higher level?

[NOTE: I'm using ASP.NET MVC2 RC2.] I have URLs like this: /customers/123/orders/456/items/index /customers/123/orders/456/items/789/edit My routing table lists the most-specific routes first, so I've got: // customers/123/orders/456/items/789/edit routes.MapRoute( "item", // Route name "customers/{customerId}/orders...

ASP.NET WebForms URLRouting - All Routes Receiving 404

All routes within my ASP.NET URL Routing web application are receiving a 404. However, the actual pages that exist are showing up correctly. I'm using IIS7. Any ideas? ...

Basic Ruby on Rails Question about routing

I have a controller without any related model. This controller is to span some information from various models. I have lots of actions there, which define certain views on the page. What would be the best way to organize routes for this controller? What I would like is to have /dashboard/something point to any action in the dashboard c...

controller path not found for static images? asp.net mvc routing issue?

I have an image folder stored at ~/Content/Images/ I am loading these images via <img src="/Content/Images/Image.png" /> Recently, the images aren't loading and I am getting the following errors in my error log. What's weird is that some images load fine, while others do not load. Anyone have any idea what is wrong with my routes...

NerdDinner routing

I watched Scot hanselmann's presentation at mix '10. When he presented the tiny urls for Nerddinner he said it was a 2 part process. a) modify global.asax.cs with a new route b)some sort of isapi rewrite. When I implemented this in my asp.net mvc 2 site I only did part a. and it works. why then did he do part b?? what is the advantag...

Symfony 1.4: how to enable non-numerical IDs for routes in admin generator?

My model is built on non-numerical ID's (36-char. GUID to be specific). The problem is that when I run symfony 1.4 admin generator, it assumes that all my IDs are numeric and applies default routing requirements. I tried providing specific routing requirements as advised here: http://www.codemassacre.com/2009/04/27/symfony-12-admin-wit...

Need Help Creating a Route in ASP.NET MVC

I want to create a route like //Widgets/PerformanceTable/['best' or 'worst' to sort by performance of an investment] where either 'best' or 'worst' are required. Can somebody show me a good way to do this? Thanks ...

Route all requests through PageController except existing controllers (Zend Framework)

For a new CMS i've developed a Pages module that allows me to manage the site's tree structure. Each page is reachable from the url http://www.example.com/pageslug/ where pageslug identifies the page being called. What I want to achieve now is a route that allows me to route all incoming requests to a single PagesController unless it's ...

Call named routes in CakePHP as the same way in Ruby on Rails

How can I call a route (in the view) in CakePHP as the same way in Rails? Ruby on Rails routes.rb map.my_route '/my-route', :controller => 'my_controller', :action => 'index' view link_to 'My Route Name', my_route_path CakePHP routes.php Router::connect('/my-route', array('controller' => 'my_controller', 'action' => 'index')); ...

Ruby-on-rails: routing problem: controller action looks for show when it should look for finalize

background: trying to use the twitter gem for ruby-on-rails. in routes: map.resources :twitter_sessions map.finalize_twitter_sessions 'twitter_sessions/finalize', :controller => 'twitter_sessions', :action => 'finalize' (twitter_sessions is the controller for the twitter sessions in my app). The view has one file new.html.erb and i...

Problem Routing domains subfolder

Hi there, I'm pretty new to ASP.NET MVC and I hope it is not a too silly question. So here it comes. I have ... a ASP.NET MVC application with a domain similar to http://mydomain/mysubfoler1/myappfolder My problem... the routing of my application (it worked fine without using a subfolder after the domain-name). The applications ...

How to access Java servlet running on my PC from outside ?

I used Netbeans6.7 to write a servlet, when it runs, it opens a browser window with this address : http://localhost:8080/My_App/Test_Servlet, I replaced the "localhost" with my IP address, now it looks like this : http://192.???.1.??:8080/My_App/Test_Servlet, but I tried to access it from another computer outside my home, it can't read a...

How to embed multiple tags in Rails routes, like Stackoverflow.

When one selects a Tag on stackoverflow, it is added to the end of the Url. Add a second Tag and it is add to the end of the Url after the first Tag, with a '+' delimiter. For example, http://stackoverflow.com/questions/tagged/ruby-on-rails+best-practices. How is this implemented? Is this a routing enhancement or some logic contained...

ASP.NET Webforms 4.0 Routing : How to get rid of physical urls.

Hi, How would you accomplish these in ASP.NET Webforms 4.0 Routing; .aspx pages should not be accesible directly, pages should be accesible only with routes, Start page should be "/" or "/home" or something else, but not "Default.aspx". Thanks. ...

ASP.Net MVC View and Controller file structure

I am very confused the View and corresponding controller has to be set in MVC 1.0 project structure. Currently in a default application we have About.aspx page under Home folder and all the controller action is handled in HomeController. This controller mixes up Home action and About action. It makes things messy. I like to have clear s...

in asp.net mvc is it possible to register routes somewhere other than application.Start()

Hi, is it possible to create and register routes after Application.Start() is called? let's say have a controller, PersonController. With default routing, URLs could look something like www.site.com/Person/Edit/4, with 'Person' matching the controller. now imagine I have several users, some may prefer we use the term 'Friends'. I wo...