Closed arturjaworski-htd closed 9 months ago
@tongueroo this is something that I have came across as well, url helpers are only generated for GET requests
get "profile", to: "registrations#edit", as: :profile
patch "profile", to: "registrations#update", as: :update_profile
delete "profile", to: "registrations#delete", as: :delete_user
Does this happen on v5? If so ill pick this one up.
On v5 they are generated for all CRUD methods. So v5 will close this.
Fixed in v5
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
Following the Routing Guide it should generate helper methods.
Current Behavior
After executing the command
bundle exec jets routes
it gets this result: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
:Solution Suggestion