B
B
Bogdan2017-07-10 13:02:42
Ruby on Rails
Bogdan, 2017-07-10 13:02:42

Routing in Rails?

Hello. There is a controller which is located in the institution folder
. Is it possible to rewrite everything to symbolic variables such routing.

root action: :index, controller: 'institution/base'

  # Так не работает и генерирует вот такой Controller#Action: base#index {:module=>:institution}
  root action: :index, module: :institution, controller: :base

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
apoyan, 2017-07-11
@apoyan

scope module: :institution do
  root action: :index, controller: :base
end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question