#178

  Рет қаралды 4,096

SupeRails

SupeRails

Күн бұрын

Пікірлер: 40
@SupeRails
@SupeRails 4 ай бұрын
🚨 The updated syntax is to use `bin/rails generate authentication`, not `bin/rails generate sessions`
@angeloc700
@angeloc700 Ай бұрын
Nice work - quick, thorough, and to the point! I'm coming back to rails after a several year hiatus, and boy, has it changed (seems like for the better)! Thanks for sharing!!
@julian_handpan
@julian_handpan 5 ай бұрын
Finally! Something that make more sense than fight with JS...
@SupeRails
@SupeRails 4 ай бұрын
In what case are you fighting with JS on authentication?
@julian_handpan
@julian_handpan 4 ай бұрын
@@SupeRails I mean make more sense, since everyone need auth. And JS keeps changing…
@SupeRails
@SupeRails 4 ай бұрын
To be clear, I do not recommend you to use this new Rails auth generator. Devise is way better!
@yoyobroker8107
@yoyobroker8107 5 ай бұрын
Hilarious thumbnail 😄 Great video 👍
@SupeRails
@SupeRails 4 ай бұрын
Thanks bro. Although it's a bit misleading. Devise is very good, and it's going nowhere any time soon!
@yaroslavbozhak9107
@yaroslavbozhak9107 5 ай бұрын
Great. Thanks for useful info.
@ゆうた-f2o
@ゆうた-f2o 3 ай бұрын
テストするまでは今まで通り自前のログイン機能かdevice使い続けると思うけど新しい認証増えてるのは嬉しい😊
@ledockol
@ledockol 4 ай бұрын
Спасибо Ярослав за интересное и познавательное видео.
@SupeRails
@SupeRails 4 ай бұрын
все для вас, дорогі друзі :)
@idreesibrahim5642
@idreesibrahim5642 2 ай бұрын
please use following command for now. "bin/rails generate authentication" sessions has swapped with authentication
@SupeRails
@SupeRails 2 ай бұрын
Right!!!
@hellomynameisbenjaminupton
@hellomynameisbenjaminupton 2 ай бұрын
Glad I found this comment.. Thanks
@indigotechtutorials
@indigotechtutorials 5 ай бұрын
Loved this video and I appreciate the tips about using the main branch and getting access to this feature I wonder if there is a good tailwind template or that woudl be a good idea for a new gem
@SupeRails
@SupeRails 5 ай бұрын
There's a place for that! github.com/rails/tailwindcss-rails/issues/382
@MidSeasonGroup
@MidSeasonGroup 2 ай бұрын
@superails please revisit and expound on this built-in feature.
@RyanDewhurst
@RyanDewhurst Ай бұрын
I get "User must exist" when I submit a view from one of my controllers. How do I associate the User to the POST params so that it knows to save my model to my User? In devise this is current_user.
@SupeRails
@SupeRails Ай бұрын
hey Ryan! assuming you have "Task" model first, your database "task" model should have "user_id". run this in the console: add_user_to_tasks user:references & rails db:migrate in TasksController: def create @post = Task.new(task_params) + @post.user_id = current_user.id end
@RyanDewhurst
@RyanDewhurst Ай бұрын
@@SupeRails Thank you!
@stpaquet
@stpaquet 5 ай бұрын
I like to reuse the same conventions as the ones used in Devise. So usually I will have current_user and same for the methods so that I can reuse other gems without any charge (Authorization or Access control for example)
@SupeRails
@SupeRails 5 ай бұрын
I also like the devise naming. But.... I don't recall of any other gems that rely on having methods like "current_user"...?
@stpaquet
@stpaquet 5 ай бұрын
@@SupeRails Pundit is one. Also many examples for Rolify are based on the Devise conventions (unlike Pundit, I do not think that they are enforcing the conventions)
@tofuman9526
@tofuman9526 5 ай бұрын
So what you do for oauth?
@stpaquet
@stpaquet 5 ай бұрын
@@tofuman9526 OAuth2 gem or doorkeeper.
@bradchellingworth5973
@bradchellingworth5973 15 күн бұрын
Would like to know if there is any implementation for API only rails apps?
@haroldpepete
@haroldpepete 5 ай бұрын
great video, do you think apart from basic authentication rails would implement oauth out of thee box?
@SupeRails
@SupeRails 4 ай бұрын
I really really doubt that
@Helisltu
@Helisltu 2 ай бұрын
Why storing session in cookies is better than storing in session?
@SupeRails
@SupeRails 2 ай бұрын
@@Helisltu this might explain www.rubanonrails.com/2/cookie-based-authentication-with-rails/20/secure-session#http-only-cookies
@Pablo-Herrero
@Pablo-Herrero 4 ай бұрын
Is there any good reason to do this? Is the Devise gem dead or troublesome in some way?
@SupeRails
@SupeRails 4 ай бұрын
No, I do not recommend to use this solution! Devise is perfectly good. I recommend Devise!
@hiphopheadninethree
@hiphopheadninethree 2 ай бұрын
Can you do video on how to handle email verification before allowing access to account
@SupeRails
@SupeRails 2 ай бұрын
@@hiphopheadninethree if you are using Devise, use Devise confirmable (Episode 41): superails.com/posts/ruby-on-rails-41-devise-confirmable-no-more-users-with-fake-emails If you are using this (rails 8 authentication), try this: railsbytes.com/public/templates/Xg8sMD !! Curently I do not recommend using Rails 8 native authentication in production. It is 💩 comparing to Devise
@mikopiko
@mikopiko 4 ай бұрын
Finally!
@SupeRails
@SupeRails 4 ай бұрын
I think we still need to wait a bit for this to be production-ready
@NoobCodeSaga
@NoobCodeSaga 5 ай бұрын
Great!
@tofuman9526
@tofuman9526 5 ай бұрын
What about OAuth implementation?
@SupeRails
@SupeRails 5 ай бұрын
Check out episode #103 Simple Omniauth without Devise. That's what I use for superails.com/
How To Use Import Maps with Rails
18:12
GoRails
Рет қаралды 1,9 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 695 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 30 МЛН
Is ViewComponent the Future of Rails?
12:25
Mix & Go
Рет қаралды 8 М.
New Rails authentication king?
4:57
Rapid Ruby
Рет қаралды 10 М.
A Legendary Web Framework is Reborn... In Rust
9:49
Code to the Moon
Рет қаралды 98 М.
How To Add Impersonation To Rails Authentication Generator
16:11
Episode #477 - Kamal 2
23:40
Drifting Ruby
Рет қаралды 3 М.
Why Everyone Loves Zustand
29:27
Theo - t3․gg
Рет қаралды 113 М.
Should you use Ruby on Rails in 2024?
14:43
webcrunch
Рет қаралды 58 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН