Questions tagged [named-routing]

50 questions
0
votes
1 answer

codeigniter 4 routing named routes generates no href

I have a route that should generate an href for an anchor tag but I am getting no href: Update My code for above is : data[i]["confirm"] = '
guradio
  • 15,524
  • 4
  • 36
  • 57
0
votes
1 answer

How can we pass List through named route in Flutter?

I just wanted to know how I can pass the whole list as an argument through Navigator.pushnamed() in Flutter. Is it possible or not? If I m trying to pass list n its showing The argument type 'List' cannot be assigned to 'String'
0
votes
1 answer

named route's URL in Rails

HI, I have a problem printing the named route's URL in production application. In one of my email template (email registration confirmation), am trying to append the confirmation url. this is the template snippet

Welcome to example. To complete…

RameshVel
  • 64,778
  • 30
  • 169
  • 213
0
votes
1 answer

Angular named router-outlet throwing error

I am developing a single page app where there can be multiple reactive forms loaded inside a single template. There are unique routes which connects to these form components. It is ok that when one form is displayed then another one is not shown as…
Ashwin
  • 12,081
  • 22
  • 83
  • 117
0
votes
4 answers

Laravel pass multiple parameters to named route

I've gotten stuck on a passing additional parameters to a named route. I have found how to do it on Laravel doc's as well as an answer on Stack Overflow answer. My problem is I cannot get to my delete function in the controller, when I click the…
Jelly Bean
  • 1,161
  • 1
  • 11
  • 22
0
votes
1 answer

Is it possible to specify a named route within a resourceful route?

I'm just upgrading my app to Rails 3 and as I have to rewrite my routing anyway, I'm taking some time to improve my named routes. I have an invoices controller which has a trash action (/invoices/trash lists all invoices in trash). I want to access…
brad
  • 9,573
  • 12
  • 62
  • 89
0
votes
1 answer

laravel named route helper doesn't generate url with parametes.

The laravel named route it makes query strings I don't want. From the docs: LARAVEL 5.6 accessing named route in LARAVEL generates URL with query string if i pass parameters to the second argument of the route() helper witch i don't want. i…
0
votes
2 answers

Angular 2 Named Outlet: Uncaught (in promise): Error: Cannot match any routes. URL Segment:

In a customer management app, I'm trying to have the following: Client List (Left Side of the Page) Client Details (Right Side of thePage) dashboard/client/id/ Add a Client (Right Side of the Page). dashboard/client/new. Edit a Client (Right…
J.Rem
  • 545
  • 2
  • 6
  • 24
0
votes
2 answers

How do I create a resource that is the sub-set of an existing resource

In my "routes.rb" file I have the following line: resource :users which gives me a bunch of named routes for accessing my User model in a RESTful manner. Now, I've made some additions to the User model including creating a special class of user.…
spinlock
  • 3,737
  • 4
  • 35
  • 46
0
votes
1 answer

LARAVEL: POST and GET routes with same name scrambling link_to_route

I got these routes: Route::get('prefix/list/{page?}/{size?}', ['as' => 'prefix.list', 'uses' => 'MyController@getList']); Route::post('prefix/list', ['as' => 'prefix.list', 'uses' => 'MyController@postList']); When I call link_to_route()…
Matheus Simon
  • 668
  • 11
  • 34
0
votes
1 answer

Calling a Slim named route throws exception

I am kinda new with Slim framework and now I have this problem with named routing... My code for the first route goes like this $app->get('/admin/home', function() use ($app){ if(!isset($_SESSION)){ $app->render('admin/login.php', [ …
Nikola Sicevic
  • 73
  • 1
  • 1
  • 6
0
votes
2 answers

In Ruby on Rails, routes.rb, if map.something will create something_path and something_url, does map.connect create something like that too?

In Ruby on Rails, routes.rb, if we create a "named route" map.something ":a/:b", :controller => 'foobar' it will also create something_path and something_url which are two methods usable in the controller and in the view. Does map.connect create…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
0
votes
2 answers

Rails named route with dynamic segments URL generation from model

Ruby on Rails 4.2+ only, please! I've been looking all over for tips on how to make URLs pretty in Rails, and I'm struggling to see a solution I like. What I want: Hypothetical example: given Topic, Course, etc. models that have a bunch of fields…
0
votes
1 answer

Namespace, form_for and named route

I have two controllers grouped under the admin namespace, like the following: namespace :admin do resources :projects get "profile", to: "users#edit" post "profile", to: "users#create" end In a form_for for a resource, it works fine as…
0
votes
1 answer

Named Routes in Rails: how to capture a custom url and then send params to update

I want to have this exact named route that I can put in views: <%= link_to publish_review_path(@review) %> ... I would like it to map to a path like this: "/reviews/3456/publish" ... and then when that pattern is matched, have the following sent…
Luke Griffiths
  • 859
  • 8
  • 16