use merged routes helper

This commit is contained in:
Torsten 2023-01-29 18:35:45 +02:00
parent c2d309c919
commit be27cb5ffa
2 changed files with 4 additions and 9 deletions

View File

@ -1,6 +1,6 @@
GIT
remote: https://github.com/HubFeenixMakers/merged
revision: 926f6ef197308263b3b9d1dd3db6041b89a81a9b
revision: b44c29ff50bbfc07b04a6064804ac3684eed151d
specs:
merged (0.1.0)
active_hash

View File

@ -8,17 +8,12 @@ Rails.application.routes.draw do
get "/members/edit_email" , to: "registrations#edit_email"
end
resources :members do
resources :members do
get 'settings' , on: :collection
end
merged_routes root: true
mount Thredded::Engine => '/forum'
mount Merged::Engine => "/merged" unless Rails.env.production?
post "/form" , to: "merged/form#post" , as: :post_form
get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog
get ":id" , to: "merged/view#page" , id: :id , as: :view_page
root "merged/view#page" , id: 'index'
end