Questions tagged [custom-routes]
203 questions
0
votes
1 answer
ASP.NET MVC3 dynamic routing
I'm having trouble finding the answer to this question anywhere.
I am in need of creating a form where the user can create a post and change the url to the post.
For example, if the default route is…
![](../../users/profiles/1244328.webp)
hjavaher
- 2,499
- 3
- 27
- 51
-1
votes
1 answer
How to create custom endpoints for custom post types with ACF?
I've created a custom post type with custom fields (using Advanced Custom Fields plugin).
I need to create different routes for each single post, using a code expressed during the creation of the post.
In particular: I have a field called…
![](../../users/profiles/9322266.webp)
Federico
- 315
- 1
- 2
- 11
-1
votes
1 answer
Rails custom url for a particular tab of a page
As far as my knowledge is concerned, I know that rails routes can be made for a particular action of a controller, but I'm in a situation where I need a url link ( e.g. : www.xyz.com/page/secondtab ) to open a particular tab of a particular page.…
![](../../users/profiles/6050091.webp)
Faizaan Khan
- 922
- 9
- 23
-1
votes
1 answer
custom action submitting multiple forms in Rails
So I have this structure of application: a Game model which has many Allies and many Enemies.
I want to create a custom action for Game dedicated to create and submit enemies and allies.
So in the view I will have 2 fields_for that you can submit at…
![](../../users/profiles/7511524.webp)
Manspider
- 313
- 3
- 16
-1
votes
1 answer
what is difference between resourceful and non resourceful routes
Difference between resourceful and non resourceful routes?
Actually I know one difference that we can create our custom paths in non resourceful routes.
But this routes can also be possible by member and collection in resourceful routes.
So what…
![](../../users/profiles/5671537.webp)
Nimish
- 867
- 10
- 25
-1
votes
1 answer
How write friendly url for different language MVC4 C#
I need your help to understand how can I have an URL in french and one in english that redirect to the same controller in MVC4?
In other words, I have a controller Speciality which have a controller MoreOption
public ActionResult…
![](../../users/profiles/2093273.webp)
Karine
- 345
- 1
- 7
- 17
-2
votes
1 answer
How to create a custom route when calling an action using form_for?
I created custom routes '/album' that routes to 'microposts#new'. However, when I use a form_for it routes to '/micropost' instead of returning to '/album'.
In my controller I'm using render 'album'. I would prefer to keep as render, although I can…
![](../../users/profiles/8045949.webp)
Joseph Lee
- 35
- 6
-2
votes
1 answer
ASP.NET MVC 4 Custom URL
I'm new in MVC and I trying to change the default url from http://localhost:55920/ to http://myCustonURL/
My route config:
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
…
![](../../users/profiles/5360832.webp)
Ricardo G Saraiva
- 169
- 1
- 9