custom-routes Questions

1

Solved

I have route: $app->get('/admin/login/{status}', 'App\Controller\Admin\AdminController:loginAction') How do I make {status} parameter optional?
Chamonix asked 20/3, 2016 at 14:2

1

Solved

I'd like to make a custom route for an android app, I'm not sure which API should I use and if it is compatible with Java. As far as I know I need to use waypoints to make a route (I don't need to...
Augsburg asked 4/10, 2015 at 20:6

1

Solved

I am trying to build my own little cms. I created an abstract pageBase class that is inherited by Static, Reviews, Articles, News. Each having there own controller methods. My problem is that I ne...
Atmospherics asked 11/8, 2015 at 5:52

2

Solved

I have a route like: resources :products Now I have all my code is in place but just need to change the paths from /products/:action to /items/:action I have already skimmed through the rails d...
Axes asked 18/2, 2015 at 10:38

2

Solved

I have the following route definition: resources :documents do collection do post :filter end end and the following model structure: class Document < ActiveRecord::Base belongs_to :docum...

1

Solved

I have seen this post: MVC Handler for an unknown number of optional parameters but it's for MVC and doesn't seem to work for me as I get an error: A path segment that contains more than one secti...
Tita asked 28/8, 2013 at 7:13

1

Solved

In my rails app following in routes.rb resources :users leads to following output for 'rake routes' users GET /users(.:format) users#index POST /users(.:format) users#create new_user GET /u...
Ofelia asked 8/4, 2013 at 18:17

2

Solved

I would like to pass an extra parameter to a member route of a resource something like: resources :events do member do get 'register/:participant_type_id' end end I could only accomplish it ...
Schroeder asked 24/11, 2010 at 20:5

4

Solved

I have a search route which I would like to make singular but when I specify a singular route it still makes plural controller routes, is this how it's supposed to be? resource :search Gives me ...

1

Solved

How do I add a route to my Rails 3 app which allows me to have a URL that maps to an action in a RESTful resource that accepts multiple parameters: /modelname/compare/1234,2938,40395 And then in...

2

I have a model called Spaces which has different types of places... such as Bars, Restaurants, etc. It has the same columns, same, model, controller, etc. no fancy STI, I just have one field called...
Gegenschein asked 15/4, 2011 at 9:15

2

Solved

I currently have URLs which look like this: things?category_id=6&country_id=17 and I would like to have URLs which look like this: /printer_cartridges/united_kingdom Is there a way in Rai...
Nunhood asked 14/2, 2011 at 18:20

1

I've looked online for an answer to this question, but I honestly can't seem to find a good reference for MVC routes. I have a UserController for my User objects. One can Edit, Save, View, etc. on...
Respectively asked 2/11, 2010 at 17:10
1

© 2022 - 2024 — McMap. All rights reserved.