» Home » route » Page 1
Html.Action and No route in the route table matches the supplied values which route which route
Category : 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?


View Replies


A route named “x” is already in the route collection. Route names must be unique. Exception with ASP.NET MVC 3
Category : 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

View Replies


enforce ti redirect to Route that has a dynamic route after model for context is fully loaded
Category : 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.

View Replies


ASP.NET Routing using wrong route to generate URL; route values become query string parameters
Category : 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

View Replies


“No route matches” error for route without a controller in rails/rspec
Category : 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 =>

View Replies


Rails 3 “No Route Matches” error With Custom Named Route
Category : 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


View Replies


How to remove Angular JS Route “#_=_” when redirecting to application route (via rails)
Category : 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.


View Replies


Rails testing: “No route matches” for custom route
Category : 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

View Replies


Google Map check if a route/direction is pass over route store in kml file?
Category : Development Tools & Services

Is possible verify if the route generated by user, crossed trough to other route stored in a kml file?


I found in the API Docs:


Class Direction have Ltg Ltd array.


Can I use Google API for compare each point approximation in kml file? or maybe i should do it with a script, in my server side?


Some one have something similar?


Thanks,


View Replies


Create a custom move_up route and move_down actions/route Rails
Category : Programming Languages

I am trying to create two little buttons with an up and down arrow, and sort my Products based on that. I have a model called Product, and am using acts_as_list to keep track of position.


Do I do something like this in my controller to create the routes?


resources :products
post "products/move_up"
post "products/move_down"

and in my pro


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .