Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Add the resource route helper #119

Open
rsamoilov opened this issue Jan 9, 2025 · 0 comments
Open

[API] Add the resource route helper #119

rsamoilov opened this issue Jan 9, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@rsamoilov
Copy link
Member

Description

The resource helper allows to add a singular resource to your routing. With it, the resource :profile call would generate the following routes:

Method URL Action
GET /profile/new new
GET /profile show
PATCH/PUT /profile update
DELETE /profile destroy
POST /profile create

Tips

  • The change should be done in lib/rage/router/dsl.rb.
  • Check the overview doc that shows how Rage's core components interact with each other.
  • Feel free to ask any questions or request help in the comments below!
@rsamoilov rsamoilov added the good first issue Good for newcomers label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant