» Home » route » Page 1
Html.Action and No route in the route table matches the supplied values which route which route
by Fremont in Programming Languages

When calling Html.Action with a specific controller and action I'm getting a "No route in the route table matches the supplied values". Is it possible to get the actual route that wasn't matched?


A route named “x” is already in the route collection. Route names must be unique. Exception with ASP.NET MVC 3
by brennen in ASP & ASP.net

I'm doing an ASP.NET MVC 3 web service and I keep getting this exception intermittently.


Stack trace:


Server Error in '/' Application.
A route named 'ListTables' is already in the route collection. Route names must be unique.
Parameter name: name
Description: An unhandled exception occurred during the execution of the current web request. Please review

“No route matches” error for route without a controller in rails/rspec
by Martin Dobrev in Programming Languages

Environment: Rails 3.2.12, rspec 2.12


I'm trying to bootstrap an app with a very simple routing test. The test is failing, and I can't see what could be wrong.


Here's the test that fails:


# spec/routing/meow_route_spec.rb
require 'spec_helper'
describe "meow routes" do
it "routes post /meows to meows#create" do
expect(:post =>

Rails 3 “No Route Matches” error With Custom Named Route
by bhupesh in Programming Languages

I have this custom route in my routes.rb


match '/businesses/:permalink', :to => 'businesses#show', :as => :business_permalink
resources :businesses

And I have constructed a link like this:


<%= link_to business.name, business_permalink_path %>

However, whenever I visit the page with that link, I get this err


How to remove Angular JS Route “#_=_” when redirecting to application route (via rails)
by itsmegb in Web Design

I have a rails action that redirect to the root of my application but angular seems to add #_=_ to the route.


I can't see why this is being added. It doesn't cause any harm, but it doesn't look professional.


Wondering how I can avoid having this appended to the root.


Note: Only added after redirect. Visiting root directly does not append.


enforce ti redirect to Route that has a dynamic route after model for context is fully loaded
by Comfly in Development Tools & Services

I have a route showing posts list (PostsRoute)


and I want PostsIndexRoute to be redirected to


PostRoute(not PostsRoute, representing A post) with context of last post.


My app's layout is


So I wrote a PostsIndex route like this


App.PostsIndexRoute = Ember.Route.extend({
redirect: function() {
var p = this.

ASP.NET Routing using wrong route to generate URL; route values become query string parameters
by bash in Programming Languages

Relevant route registration code:


routes.MapRoute(
"QuestionsMostRecent",
"questions",
new { controller = "questions", action = "most_recent" }
);
routes.MapRoute(
"ControllerActionFormat",
"{controller}/{action}.{format}"
);

Route generation code:


Url.RouteUrl(new {
controller = "que

Rails testing: “No route matches” for custom route
by dmossakowski in Programming Languages

I have following route:


GET /confirm/:token(.:format) Confirmations#confirm

Controller:


class ConfirmationsController < ApplicationController
# GET /confirm/<token>
def confirm
@user = User.find_by_email_token(params[:token])
if @user
@user.confirmed = true
@user.email_token = n

Changing the speed limits when asking for Route or Route Matrix in MapQuest / OpenStreetMap?
by Jpark in Programming Languages

I am looking into MapQuest API for OpenStreetMap and it seems to be a nice little service =)


I have been looking a little bit for a way to change/set the speed of the roads before asking for a Route or Route Matrix. At some times you know that there is a blizzard or something else that slows down traffic. At those times, you would want to decrease the speed of certain types of roads


EmberJS - How is find / findAll and the Route.deserialize and Route.serialize related?
by ussballantyne in Development Tools & Services

Hi in an answer to the wonderful question Ember.js - CRUD scenarios - Specifying View from within a Route find and findAll is mentioned to be used on the Model to automagically deserialize a URL.


What does this interface look like, and is it really the model and not the controller?


An example would be wonderful.


Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .