```ruby
resources :budgets, only: [:index] do
  member do
    get :budgets
  end
end 
```

But anyway, you should have this in the proper controller as I mentioned before