How to use Devise with Hotwire & Turbo.js

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

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!!

chrisaguilar
Автор

these vids on this channel are simply pure gold, thanks for your work!

klap
Автор

You absolute legend, this is why I keep my sub up all year round on gorails.

weefunkster
Автор

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.

JustBCWi
Автор

This is just what I was looking for. Thanks Chris

erickzelaya
Автор

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!

arpansac
Автор

Thank you. This is the BEST video solving this problem. Appreciate your hard work.

InLightFilm
Автор

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

dc
Автор

really cool, makes a lot of sense. I hope this get merged and we can just flip it with a boolean turbo_enabled

mathieujobin
Автор

What is better hotwire or stimulus reflex?

crr
Автор

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).

merliner
Автор

hope devise has updated since then to not need these work arounds. it should just work.

nonefvnfvnjnjnjevjenjvonej
Автор

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?

IvanRaszl
Автор

tried the latest hotwire-turbo build from github, it failed on heroku because of an integrity check

merliner
Автор

thank you but i how to do forgot password like this

ameldagdoug
Автор

Thank you Chris! You know why errors doesn't shows on edit password?

matiascarpintini
Автор

`<main>': uninitialized constant ApplicationController (NameError)
I'm running into an error where my rails program won't start now.

juwonoh
Автор

Thanks for the helpful video. I just did this:

module TurboResponder
def navigation_behavior(error)
raise(error) if get?

if has_errors? && default_action
%i[turbo_stream html], status: :unprocessable_entity))
else

end
end

def options
super.merge(formats: %i[turbo_stream html])
end
end

ClayShentrup
Автор

This doesn't fix the issue for canceling an account

AllInForYah
Автор

showed uninitialized constant application controller

powerfulmath