[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.rubyonjets.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 10.15.5 (Catalina)
Jets
2.3.16
Ruby
2.5.7, 2.5.8
Expected Behaviour
I expect the following route definition:
resources :test, only: [], param: :my_param do
get :somewhere, on: :member
end
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
Expected Behaviour
I expect the following route definition:
to produce the following routing table:
Current Behavior
The above route definition produces:
The path param is named
:test_id
instead of:my_param
.Step-by-step reproduction instructions
config/routes.rb
with the sample below.bundle exec jets routes
Code Sample
I'm happy to also provide a patch to
spec/lib/jets/router_spec.rb
to easily and quickly reproduce the problem.