Skip to content

Add singular resource routing and specs#247

Open
anuj-pal27 wants to merge 2 commits intorage-rb:mainfrom
anuj-pal27:feature/resource-helper
Open

Add singular resource routing and specs#247
anuj-pal27 wants to merge 2 commits intorage-rb:mainfrom
anuj-pal27:feature/resource-helper

Conversation

@anuj-pal27
Copy link
Copy Markdown
Contributor

@anuj-pal27 anuj-pal27 commented Mar 25, 2026

Summary

Implements the singular resource route helper in the router DSL and updates the spec suite to validate all supported options and behaviors.

Changes

  • Add resource helper routes for singular resources.
  • Include GET /:resource/new in the default action set.
  • Respect only / except filters.
  • Ignore param: for singular resources (but raise on invalid values).
  • Update specs for modules, paths, scopes, nesting, and multiple resources.

Testing

  • bundle exec rubocop spec/router/dsl_spec.rb
  • bundle exec rspec spec/router/dsl_spec.rb

fix #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] Add the resource route helper

1 participant