How to use Devise with Hotwire & Turbo.js

  Рет қаралды 17,168

GoRails

GoRails

3 жыл бұрын

► Check out gorails.com for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: jumpstartrails.com
► Ruby on Rails hosting with Hatchbox.io: hatchbox.io
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails: courses.gorails.com/payments-...

Пікірлер: 38
@chrisaguilar5330
@chrisaguilar5330 2 жыл бұрын
Mein Chris. You are on another level! This solution totally fixed my problem. You are a true blessing to the Rails community! Keep up the great work!!
@GorailsTV
@GorailsTV 2 жыл бұрын
Thanks Chris! That means a lot. 💪
@1klap
@1klap 2 жыл бұрын
these vids on this channel are simply pure gold, thanks for your work!
@weefunkster
@weefunkster 3 жыл бұрын
You absolute legend, this is why I keep my sub up all year round on gorails.
@JustBCWi
@JustBCWi 3 жыл бұрын
Chris, this dropped into my YT feed last night and I watched it. Yesterday I finally got TS to work after 2 days of struggle and toil. (Old programmer out of the game trying to get back in, long story.) I did a victory lap around the block, etc. This morning, the problems resolved in this video manifested. This video earned the most enthusiastic thumbs up I think I've ever given on YT...seriously. As a former vimmer, I'd give you style points for MacVim, but I've given into VS Code. Maybe I should give it a try as well? Any good videos? There are a couple (cross-domain) application ideas I have tried to get going that all ground to a halt with me trying to figure out React/Angular/etc. Over Christmas, I decided to chuck it all and go back to Rails. The whole Hotwire concept (proved by Hey, I think) came out at just the right moment. I'm super jazzed, and very glad that your videos help and old guy like me get back into flow. Keep it up.
@erickzelaya3651
@erickzelaya3651 2 жыл бұрын
This is just what I was looking for. Thanks Chris
@tjbihh
@tjbihh 3 жыл бұрын
Great work, Chris. Thank you!
@ipheolu
@ipheolu 2 жыл бұрын
This was life-saving. Thank YOU!
@dc366
@dc366 2 жыл бұрын
Its more than a year since you published this video and we still have to do this in Rails 7. It has not been added to the responders and devise gem. @GoRails any way you can upload your fix to their Github? Thank you
@InLightFilm
@InLightFilm 2 жыл бұрын
Thank you. This is the BEST video solving this problem. Appreciate your hard work.
@ricardovaltierra8858
@ricardovaltierra8858 2 жыл бұрын
Excellent video, thank you very much
@Kocikify
@Kocikify 2 жыл бұрын
That was was very helpful, thank you
@arpansac
@arpansac 3 жыл бұрын
This is really helpful Chris, the redirect thing works well. I was trying my hand at it for a whole day. I'm personally using hotwire-rails gem and I think there's some thing extra that needs to be worked out for that. Would be really helpful if you can share a video on that too!
@GorailsTV
@GorailsTV 3 жыл бұрын
I think you just have to drop the new turbo.js in the asset pipeline to override the one from the gem. 👍
@arpansac
@arpansac 3 жыл бұрын
@@GorailsTV Thanks for the quick reply :) Do you suggest I should do that? Have also raised an issue on their github Your tutorials are awesome!
@BryanHooper1
@BryanHooper1 3 жыл бұрын
Much thanks....super helpful
@lorenacadavid3392
@lorenacadavid3392 2 жыл бұрын
I love you!, thank you
@mathieujobin4953
@mathieujobin4953 3 жыл бұрын
really cool, makes a lot of sense. I hope this get merged and we can just flip it with a boolean turbo_enabled
@crr4141
@crr4141 3 жыл бұрын
What is better hotwire or stimulus reflex?
@merlin2049er
@merlin2049er 3 жыл бұрын
I got it working, but it failed to post the error messages the first time I land on the form. I have to reload the page for them and try it a second time (then it displays the error messages).
@merlin2049er
@merlin2049er 3 жыл бұрын
oh, I was using a gem called client-side validations. I guess I don't need to use it any longer?
@nonefvnfvnjnjnjevjenjvonej3384
@nonefvnfvnjnjnjevjenjvonej3384 2 жыл бұрын
hope devise has updated since then to not need these work arounds. it should just work.
@GorailsTV
@GorailsTV 2 жыл бұрын
It hasn't quite yet unfortunately, but I've been working on some contributions.
@ameldagdoug5292
@ameldagdoug5292 3 жыл бұрын
thank you but i how to do forgot password like this
@merlin2049er
@merlin2049er 3 жыл бұрын
tried the latest hotwire-turbo build from github, it failed on heroku because of an integrity check Integrity check failed for "@hotwired/turbo-rails" (computed integrity doesn't match our records, got "sha512-...
@GorailsTV
@GorailsTV 3 жыл бұрын
Use the new Beta
@merlin2049er
@merlin2049er 3 жыл бұрын
@@GorailsTV which new beta?
@IvanRaszl
@IvanRaszl 3 жыл бұрын
Why is there a need to have hotwire on devise pages? Can we not exclude the devise views from hotwire, but have it everywhere else in the app? Is it an all or nothing situation?
@GorailsTV
@GorailsTV 3 жыл бұрын
You want it to take over everything so it can make the mobile adapters feel seamless.
@wotok7
@wotok7 3 жыл бұрын
Here is the link to gorails discussions gorails.com/episodes/devise-hotwire-turbo?autoplay=1
@ClayShentrup
@ClayShentrup 2 жыл бұрын
Thanks for the helpful video. I just did this: module TurboResponder def navigation_behavior(error) raise(error) if get? if has_errors? && default_action render(rendering_options.merge(formats: %i[turbo_stream html], status: :unprocessable_entity)) else redirect_to(navigation_location) end end def options super.merge(formats: %i[turbo_stream html]) end end
@matiascarpintini7062
@matiascarpintini7062 3 жыл бұрын
Thank you Chris! You know why errors doesn't shows on edit password?
@GorailsTV
@GorailsTV 3 жыл бұрын
Editing registration works the same as registration does.
@matiascarpintini7062
@matiascarpintini7062 3 жыл бұрын
@@GorailsTV yup, that works but not in passwords/edit (to me at least)
@juwonoh2478
@juwonoh2478 2 жыл бұрын
`': uninitialized constant ApplicationController (NameError) I'm running into an error where my rails program won't start now.
@marcello3171
@marcello3171 2 жыл бұрын
just add the turbo class he made in the controllers/turbo_controller.rb file. should load fine
@powerfulmath8488
@powerfulmath8488 Жыл бұрын
showed uninitialized constant application controller
@AllInForYah
@AllInForYah Жыл бұрын
This doesn't fix the issue for canceling an account
How to Upgrade from Turbolinks to Hotwire & Turbo
11:22
GoRails
Рет қаралды 9 М.
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 54 М.
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 5 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 16 МЛН
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 20 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 3 МЛН
Liking Posts With Hotwire in Ruby on Rails
25:21
GoRails
Рет қаралды 1,8 М.
Gear Ball 2.0 Assembly
4:49
Ruven Bals
Рет қаралды 644
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 13 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 24 М.
Introduction to Stimulus Reflex
10:11
GoRails
Рет қаралды 17 М.
How To Build a Powerful Search Form With Hotwire
7:40
Mix & Go
Рет қаралды 10 М.
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,6 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,4 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,1 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 936 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3 МЛН