I added a route into my site to allow for a sitemap and everything worked fine in IIS7 but once I deployed the route stopped working. Since the live server is running IIS6 I needed to put a new mapping in for .xml to be processed by .net and then it started to work.
My issue though is on every other xml file on the site now. I keep gett...
Hi, I have just started learning ruby on rails. I have a doubt wrt routing.
Default Routing in Rails is :controller/:action/:id
It works really fine for the example lets say example.com/publisher/author/book_name
Could you tell me how do you work with something very big like this site
http://www.telegraph.co.uk/sport/football/leagues...
I'm using custom routing in a web forms context. I have some titles (part of my custom route) that have say a question mark character. When I URL encode this text ("Question?") and then pass into my route, I get an HTTP ERROR CODE 400. Apparently, the URL encoded text is somehow confusing the routing manager.
Can someone provide context...
Update: Turns out that this problem was because half my mongrel did not restart. Thanks all for help!
Hi folks, i have an urgent problem. Essentially, my routing works on my localhost. But when i deployed this to production, the routes does not seem to work correctly.
For example, given a new route "/invites" - sometimes i will get a 4...
To clarify, the scenarios I am looking at involve deploying ASP.NET 4 Web Forms application that employ RouteTable.Routes.MapPageRoute:
public class Global : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
RouteTable.Routes.MapPageRoute("questionnaires", "questionnaires", "~/Pages/Questio...
I'm looking to write a custom route that would allow the following
http://localhost/blog/tags/foo
Currently this is what actually works
http://localhost/tags/Index/nhibernate
I've tried the following with no success - any help would be appreciated
routes.MapRoute(
"Tags",
"{controller}/{id}",
...
I am trying to implement navigation like in Tree Based Navigation but based on URLs defined in routes.rb (named routes, resources, ...).
Is it possible to retreive a collection of all routes defined in routes.rb?
So I can use it in a select like this:
<%= f.collection_select :url, Route.all, :url, :name %>
Tnx!
...
I don't know how to make a link_to because I'dont have a nouveau_message_path in rake routes
rake routes :
GET /nouveau_message/.:id {:action=>"nouveau_message", :controller=>"messages"}
routes.rb :
controller :messages do
get 'nouveau_message/.:id' => :nouveau_message
end
What is the best way to make a link_t...
If I create a new MVC web application project, build and run it the home page comes up as expected. However, if you change the project's Web Properties to use a "Virtual Path" that contains a dot (for example: "Version1.2"), it will fail to work ("The resource cannot be found.").
What options are there?
...
I had a read of the documentation, but couldn't see an example of how it would be possible to use the variable in traditional PHP style of $_POST['var']
I'm pretty sure my URL is legit:
domain.com/module/controller/action/var/value/
Using the above as an example:
$var didn't work
$_POST['var'] didn't work
How is it done?
...
I'm new to CodeIgniter and routing.
I have a Login controller whose index() loads up a view to enter a username/password. In the view, the form has action="login/authenticate". Login->authenticate() determines if the login is valid or not. If it's valid, redirect('lobby'), if not redirect('login')
routes.php:
$route['default_controlle...
I have a named route like the following:
map.with_options :path_prefix => '/:username', :controller => 'questions' do |q|
q.question '/:id', :action => 'show', :conditions => { :method => :get }
end
Now to generate a URL to a specific question I have to write
question_path( :id => @question.id, :username => @question.user.usernam...
Hey guys,
I have a form partial current setup like this to make new blog posts
<% form_for([@current_user, @post]) do |f| %>
This works great when editing a post, but when creating a new post I get the following error:
undefined method `user_posts_path' for #<ActionView::Base:0x6158104>
My routes are setup as follows:
map.resour...
I've been developing the CMS backend for a website for a few weeks now. The idea is to craft everything in the backend first so that it can manage the database and information that will be displayed on the main website.
As of now, I currently have all my code setup in the normal rails MVC structure. So the users admin is /users and vide...
my urls look like:
www.example.com/{languagecode}/{controller}/{action}/{id}
where language code is en-us, etc.
From the OnActionExecuting event, how can I get these values?
...
Im trying to understand the virtual terminal access. I was wondering if anyone know any sources for the Virtual Terminal Access protocol. And other sources like ftp, http, and remote procedure calls.
...
I want to provide simple href links to my PDF forms that reside in my Forms folder. I have a created a simple Index.aspx and FormController Index action that simple iterates through the list of PDF files using my FormMetaData.xml file. The links get created just fine but when you click on the links I get a 404 exception. That looks li...
Hi
I'm working on a rails application which is built around a tree data structure. As such, the index of the controller displays the root node of said structure. Demonstration is probably easier to explain what I want:
/place/1 == place
can I restfully define such that
/place/1/photos == place/photos
and
/place/1/photos/1 == plac...
I'm looking to make a really simple route in my ASP.NET MVC 2.0 website. I've been googling for help but all the examples I can find are for really complex routing.
Basically I want all the pages in my Home Controller to resolve after the domain as opposed to /Home/
For example I want http://www.MyWebsite.com/Home/LandingPage/
To bec...
routes.info.route = "info"
routes.info.defaults.module = "default"
routes.info.defaults.controller = "index"
routes.info.defaults.action = "info"
http://localhost/info/
Exception information:
Message: Invalid controller specified (info)
Request Parameters:
array (
'controller' => 'info',
'action' => 'index',
'module' => 'd...