You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the contents described in the "Creating Friendly URLs and Caching" of the README.md in the "member do" of routes.
I've tested it a lot, but I get an error and can't use it.
I use Rails 5.2.5
My routes code is this.
resources :events do
member do
get 'message' => 'events#message'
end
end
resources :events, concerns: :paginatable do
member do
get '(message/:page)', action: :index, on: :collection, as: ''
end
end
and
concern :paginatable do
get '(message/:page)', action: :index, on: :collection, as: ''
end
resources :events do
member do
get 'message' => 'events#message'
end
end
I've done a lot of other tests, but all of them resulted in a routes error.
I am very confused about how to solve this problem.
I would appreciate it if you could help me.
Thank you
The text was updated successfully, but these errors were encountered:
I want to use the contents described in the "Creating Friendly URLs and Caching" of the README.md in the "member do" of routes.
I've tested it a lot, but I get an error and can't use it.
I use Rails 5.2.5
My routes code is this.
my events contoroller's method "message" is this.
and I tried this code
and
I've done a lot of other tests, but all of them resulted in a routes error.
I am very confused about how to solve this problem.
I would appreciate it if you could help me.
Thank you
The text was updated successfully, but these errors were encountered: