How to use Devise with Hotwire & Turbo.js

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

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.
@InLightFilm
@InLightFilm 2 жыл бұрын
Thank you. This is the BEST video solving this problem. Appreciate your hard work.
@ipheolu
@ipheolu 2 жыл бұрын
This was life-saving. Thank YOU!
@erickzelaya3651
@erickzelaya3651 2 жыл бұрын
This is just what I was looking for. Thanks Chris
@tjbihh
@tjbihh 3 жыл бұрын
Great work, Chris. Thank you!
@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.
@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
@Kocikify
@Kocikify 2 жыл бұрын
That was was very helpful, thank you
@ricardovaltierra8858
@ricardovaltierra8858 2 жыл бұрын
Excellent video, thank you very much
@BryanHooper1
@BryanHooper1 3 жыл бұрын
Much thanks....super helpful
@arpangarg3480
@arpangarg3480 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. 👍
@arpangarg3480
@arpangarg3480 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!
@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
@lorenacadavid3392
@lorenacadavid3392 2 жыл бұрын
I love you!, thank you
@crr4141
@crr4141 3 жыл бұрын
What is better hotwire or stimulus reflex?
@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.
@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?
@ameldagdoug5292
@ameldagdoug5292 3 жыл бұрын
thank you but i how to do forgot password like this
@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.
@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?
@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 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 13 М.
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 16 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 17 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 54 М.
Hotwire: The Demo
12:55
Getting Real
Рет қаралды 37 М.
Ruby on Rails #59 Hotwire Turbo Streams CRUD
40:56
SupeRails
Рет қаралды 18 М.
Liking Posts With Hotwire in Ruby on Rails
25:21
GoRails
Рет қаралды 1,8 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 23 М.
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 10 М.
Episode #335 - Hotwire Modals
17:06
Drifting Ruby
Рет қаралды 9 М.
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 5 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 5 МЛН
Mi primera placa con dios
0:12
Eyal mewing
Рет қаралды 719 М.