A
A
Andrey2018-05-24 14:05:13
Ruby on Rails
Andrey, 2018-05-24 14:05:13

Is it possible to change the name of the prefix (resource) in the URL?

There is a resource and many routes in it

resources :hallo, only: [:index] do
    member do
      get :get_wizard
      .....
      .....
      .....
      .....
    end
  end

Now the Url looks like this - /hallo/1/get_wizard
Is it possible to change the name of the route so that the path looks like this - /original/1/get_wizard?
Make single routes, and I can not use resources - there are too many routes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vayladion Gognazdiak, 2018-05-24
@andreychumak

You can grind it like this
resources :hallo, path: :zalupas ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question