Questions tagged [custom-routes]
198 questions
0
votes
1 answer
Rails Routing Question - "No route matches..."
I've got a model "Job" which i'm adding a new action "preview" to. In order to support this new action, i've modifed routes.rb as follows:
resources :jobs do
member do
get 'preview'
end
end
Then on my Job create action i've got the…

cman77
- 1,753
- 1
- 22
- 48
0
votes
1 answer
Rails 5 Custom Routes: how to create custom path and replace %2F with forward slash
I have a School model and rather than have the url at schools/1 I would like to have the url at localhost:3000/IL/city/school_name.
I followed this guide to create the custom routes using a slug, but the end result is a url that looks like…

tomb
- 1,374
- 1
- 13
- 23
0
votes
2 answers
A custom route along with resource routes
I have setup a custom route, and it seems to work. However, I also have a resources routes as well for the same controller. I think I am just doing something wrong, but I can't tell what it is. I am honestly hacking together routes since I am still…

Buddy Lindsey
- 3,560
- 6
- 30
- 42
0
votes
1 answer
Changing the Laravel redirect location after registration not working - Laravel 5.6
I changed protected $redirectTo = '/home'; to protected $redirectTo = '/dashboard'; in RegisterController.php, But it's not working. Redirection is working fine for LoginController.php. I changed /home to /dashboard in possible everywhere. Why after…

Rashed Hasan
- 3,721
- 11
- 40
- 82
0
votes
1 answer
ASP.NET MVC catch the rest of the route url
I would like to learn how do I make a "catch the rest" route in ASP.NET MVC?
I need to take formated urls, read some data to it's values, and take the remainder of the link and SAVE it to some variable so I can read it later and generate a…

BuzzBubba
- 723
- 1
- 8
- 20
0
votes
3 answers
rails 3 routing question (Routing Error "No route matches …")
I'm using ruby 1.9.2 and rails 3 and I think I'm having a moderately simple problem with routing.
I have a model called AdvancedQuery.
Its controller is AdvancedQueriesController. Almost everything is done in the standard rails way except for the…

user141146
- 3,285
- 7
- 38
- 54
0
votes
0 answers
Rails.application.routes.default_url_options in backgound job does not exist in path helper method
Background job:
class ProcessJob < ActiveJob::Base
queue_as :default
def perform(room, object)
payload = ApplicationController.render(
partial: 'objects/object',
locals: { object: object }
)
MyChannel.broadcast_to(room,…

Ismail Akbudak
- 195
- 7
0
votes
1 answer
Rails 3 - Made a new controller action and view but cant route it
I'm using Rails 3
I have a controller called subscriber_controller.rb
I just added an action called "def houston" and added this to my routes file
match '/houston' => 'subscriber#houston'
get "subscriber/houston"
but whenever I try to go to…

ChrisWesAllen
- 4,935
- 18
- 58
- 83
0
votes
1 answer
Sails.js custom route with same controller but different layouts
today Im here to not just check good answers, but ask!
I want to do the following using Sails.js and its routes.js:
What I want is to actually provide different layouts based on the type of user that is logged in. I know how to do that, but I dont…

paulogdm
- 1,572
- 14
- 20
0
votes
0 answers
I want to use devise to edit within the show page of a User
In my show page for my User I have a edit profile tab that is contained in the profile. I made a Devise controller that I build custom routes with. My issue is now when im within 'users/show/:id' it shows the edit page. Should I copy the devise…

dutchkillsg
- 333
- 4
- 21
0
votes
1 answer
RoR Magazine specific category routes
I would like to create routes on RoR for a media website with different sections of articles (ecology, legal, economy, etc...)
I would like my url goes like this
root/magazine/ecology/name-of-articles
(nothing corresponding on rails routing/rails…

Edouard
- 3
- 4
0
votes
1 answer
Understanding routing
I have trying to change the routing of my asp.net project. I want Login controller to load on startup of my project rather than any other controller.
So, I have added LoginDefault routemap in existing routes in asp project
public static void…

shunilkarki
- 85
- 2
- 3
- 17
0
votes
1 answer
Rails Routing: Flexible Resource Path depending on attributes
How could you make a route for resource be flexible enough depending on its attributes?
For example,
resources :articles, param: :article_slug do
member do
resources :comments
end
end
Article has attributes of title, category, slug,…
0
votes
1 answer
Trying to implement a custom route in umbraco 7.5.3 but the overrided method FindContent does not get fired
I've trying to retrieve the rendermodel model into my custom hijacked method, but i always get null. The two optional parameters are correct.
This is my custom route :
RouteTable.Routes.MapRoute(
"umbracoRoute",
…

Nando
- 11
- 5
0
votes
1 answer
Azure route not forwarded to endpoint after filtering query
I am starting to use Azure IoT hub and I configured my endpoints and servicehub to learn from it with a route.
In this route I specify that when a message says level = critical that it forwards the message to my endpoint like explained in the…

Tvt
- 223
- 1
- 3
- 16