mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Move category dropdown menu content into a turbo frame (#782)
* Move category dropdown menu content into a turbo frame * Fix lint * Review fixes * Cleanup * Review fixes * Final cleanup * Revert schema change
This commit is contained in:
parent
32748b0632
commit
ac27a1c87f
7 changed files with 86 additions and 51 deletions
|
@ -38,16 +38,19 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :transactions do
|
||||
match "search" => "transactions#search", on: :collection, via: %i[ get post ], as: :search
|
||||
|
||||
collection do
|
||||
scope module: :transactions do
|
||||
resources :categories, as: :transaction_categories do
|
||||
match "search" => "transactions#search", via: %i[ get post ]
|
||||
|
||||
scope module: :transactions, as: :transaction do
|
||||
resources :categories do
|
||||
resources :deletions, only: %i[ new create ], module: :categories
|
||||
collection do
|
||||
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
|
||||
end
|
||||
end
|
||||
|
||||
resources :rules, only: %i[ index ], as: :transaction_rules
|
||||
resources :merchants, only: %i[ index new create edit update destroy ], as: :transaction_merchants
|
||||
resources :rules, only: %i[ index ]
|
||||
resources :merchants, only: %i[ index new create edit update destroy ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue