call routing error [message #147878] |
Sat, 28 March 2020 11:01  |
Piskota
Messages: 28 Registered: August 2011 Location: Hungarian
|
|

|
|
Hi All
when i try to change route incoming call function not applied this.
Ewery incomming call routed the previusli settings
Anyone use this program?
Thanks
|
|
|
|
Re: call routing error [message #148329 is a reply to message #148282] |
Sat, 20 June 2020 14:35  |
Lewis-H
Messages: 11 Registered: December 2019
|
|
|
|
Try this
namespace :admin do
resources :posts , :categories
get '', to: 'posts#index', as: '/'
end
scope "(:locale)", :constraints => {:locale => /[a-zA-Z]{2}/} do
...
root :to => 'site#home', :via => :get
...
end
Output of rake routes
admin GET /admin(.:format) admin/posts#index
Tried with get localhost:3000/admin
Started GET "/admin" for 127.0.0.1 at 2013-06-11 17:41:40 +0700
Processing by Admin::PostsController#index as HTML
Rendered admin/posts/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 1095ms (Views: 1095.1ms | ActiveRecord: 0.0ms)
|
|
|