10000 Rails Course: Replace Devise with Rails Authentication Generator · Issue #29345 · TheOdinProject/curriculum · GitHub
[go: up one dir, main page]

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

Rails Course: Replace Devise with Rails Authentication Generator #29345

Open
3 tasks done
RolandStuder opened this issue Jan 23, 2025 · 1 comment
Open
3 tasks done

Rails Course: Replace Devise with Rails Authentication Generator #29345

RolandStuder opened this issue Jan 23, 2025 · 1 comment

Comments

@RolandStuder
Copy link
Contributor

Checks

Describe your suggestion

The member only lesson is a great introduction. It uses Devise which is basically an industry standard, however Rails 8 now comes with a generator for handling authentication. I believe we should stick to Rails defaults as much as possible, so I suggest reworking that lesson to use the authentication generator.

Here's a good article on the generator: https://www.bigbinary.com/blog/rails-8-introduces-a-basic-authentication-generator

Path

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-on-rails-members-only

(Optional) Discord Name

roli_on_rails

(Optional) Additional Comments

Happy to help out, by taking the lead on this, or to support someone else doing it.

@JoshDevHub
Copy link
Contributor

Thank you for making this issue @RolandStuder. I'd be in favor of this I think, though before I give the full go ahead, I'll reach out to other Rails maintainers and see what they think. Devise is still a very common solution, and I think will remain so in spite of the Rails 8 generator. It could be argued that there's value in learning it.

I think the details around using the Authentication Generator should occur in the previous lesson to the Members Only project though: The Sessons, Cookies, and Authentication lesson. I think a lot of this lesson could be reworked with the goal of using the new generator, and then the Members Only instructions can be streamlined to just talking about building a project while setting up auth through the generator.

Also will have to make sure other mentions of using Devise are cleaned up. One example would be in the Final Project assignment.

But anyways, I'll talk to the team about it some and get back to you.

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

No branches or pull requests

2 participants
0