jets icon indicating copy to clipboard operation
jets copied to clipboard

Routes Helper Methods do not generate

Open arturjaworski-htd opened this issue 2 years ago • 0 comments

Checklist

  • [x] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a jets upgrade command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
  • [x] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.boltops.com
  • [x] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.

My Environment

Software Version
Operating System macOS 12.2.1
Jets 3.1.1
Ruby 2.7.5p203

Expected Behaviour

Following the Routing Guide it should generate helper methods.

Current Behavior

After executing the command bundle exec jets routes it gets this result:

image The behavior is the same with different settings, I would like to use helper methods in rspec tests.

Step-by-step reproduction instructions

Code Sample

config/routes.rb:

Jets.application.routes.draw do
  resources :users, only: [] do
    collection do
      get :me
      put :update, to: "users#update", as: :update
      post :update_avatar
      post :remove_avatar
    end
  end
end

Solution Suggestion

arturjaworski-htd avatar Mar 24 '22 16:03 arturjaworski-htd