Questions tagged as 'route'

1
answer

Error Customizing MVC5 Routes

The error occurs in the RegisterRoutes method in RouteConfig.cs on the routes.MapMvcAttributeRoutes(); When running in the browser: * The built-in constraint of type 'DefaultInlineConstraintResolver' could not resolve the follow...
asked by 18.01.2018 / 21:55
1
answer

Laravel - How to call a different action from store, update, edit?

I created a action but not the default of resource , as I can call it by an action in form as I call update and store . <form method="POST" role="form" action="{!!URL::route('cadastro.store')!!}" > I w...
asked by 02.12.2016 / 00:16
1
answer

Parameters in the URL using /

I need to have a URL in the following format:    nomedosite.com/note/ {anything) I need this url to fire the controller Note , with the action Index . How do I set up my route? I tried to use this: routes.MapRoute(...
asked by 30.05.2018 / 13:40
1
answer

How to configure Api web route to accept query string?

I have a web api with the following method: [HttpGet] [Route("api/documento/doc/list?{cpf}")] public string Listar(string cpf) { return "value"; } I need the above method to be called through the url:    link The big pr...
asked by 15.02.2017 / 13:52
1
answer

First page - Ionic and ui-router

I'm defining an application opening page, where a list is displayed and clicking an item, the user is directed to a page that contains tabs . As shown below: Eachtabshoulddisplaythecontentsofanhtmlpage(view).However,Iamnotabletodispl...
asked by 06.07.2015 / 20:37
1
answer

Why does the index () method not recognize the [CI] redirect?

I'm following a course and stopped at a problem I can not solve. In this link it is possible to register a user and when finishing the registration he should go to this one page but the only thing that happens is a 404 error. routes....
asked by 24.10.2015 / 20:39
2
answers

How to pass parameter in a route?

I have a simple test routine, which is not working in the final part. The idea is to query a MySql database and compose a page with the result, which works correctly. By clicking on a link in a line of this composite page, line data should be...
asked by 02.02.2016 / 11:49
2
answers

NoMethodError in Users # show

I'm learning Rails, following a book that has the following code: UserController class UsersController < ApplicationController def new @user = User.new end def edit @user = User.find(params[:id]) end def show @user =...
asked by 05.02.2014 / 17:55
0
answers

Configure ASP.NET WebForms Rotation

Good afternoon, I have an ASP.NET application in WebForms (still) working normally, the client asked to include the date in the route of a new page, I created the route like this: routes.MapPageRoute( "RevendaMapRoute", "Re...
asked by 02.09.2017 / 18:15
1
answer

Routes with wildcard (: any) ignoring other controllers

In the routes.php file I set the following route : $route['(:any)'] = 'reference/check/$1'; I need it because the first parameter in the URL after the domain is the username ( exemplo.com/{nome_usuario} ). Then I check the Reference...
asked by 26.06.2015 / 06:18