How to use Devise with Hotwire & Turbo.js

  Рет қаралды 18,018

GoRails

GoRails

Күн бұрын

Пікірлер: 38
@chrisaguilar5330
@chrisaguilar5330 3 жыл бұрын
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 3 жыл бұрын
Thanks Chris! That means a lot. 💪
@1klap
@1klap 3 жыл бұрын
these vids on this channel are simply pure gold, thanks for your work!
@weefunkster
@weefunkster 4 жыл бұрын
You absolute legend, this is why I keep my sub up all year round on gorails.
@erickzelaya3651
@erickzelaya3651 3 жыл бұрын
This is just what I was looking for. Thanks Chris
@InLightFilm
@InLightFilm 3 жыл бұрын
Thank you. This is the BEST video solving this problem. Appreciate your hard work.
@ipheolu
@ipheolu 3 жыл бұрын
This was life-saving. Thank YOU!
@JustBCWi
@JustBCWi 4 жыл бұрын
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.
@tjbihh
@tjbihh 4 жыл бұрын
Great work, Chris. 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
@arpansac
@arpansac 4 жыл бұрын
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 4 жыл бұрын
I think you just have to drop the new turbo.js in the asset pipeline to override the one from the gem. 👍
@arpansac
@arpansac 4 жыл бұрын
@@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!
@Kocikify
@Kocikify 2 жыл бұрын
That was was very helpful, 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
@BryanHooper1
@BryanHooper1 3 жыл бұрын
Much thanks....super helpful
@lorenacadavid3392
@lorenacadavid3392 2 жыл бұрын
I love you!, thank you
@crr4141
@crr4141 3 жыл бұрын
What is better hotwire or stimulus reflex?
@merlin2049er
@merlin2049er 4 жыл бұрын
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 4 жыл бұрын
oh, I was using a gem called client-side validations. I guess I don't need to use it any longer?
@IvanRaszl
@IvanRaszl 4 жыл бұрын
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 4 жыл бұрын
You want it to take over everything so it can make the mobile adapters feel seamless.
@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 4 жыл бұрын
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 4 жыл бұрын
Use the new Beta
@merlin2049er
@merlin2049er 4 жыл бұрын
@@GorailsTV which new beta?
@ameldagdoug5292
@ameldagdoug5292 4 жыл бұрын
thank you but i how to do forgot password like this
@matiascarpintini7062
@matiascarpintini7062 4 жыл бұрын
Thank you Chris! You know why errors doesn't shows on edit password?
@GorailsTV
@GorailsTV 4 жыл бұрын
Editing registration works the same as registration does.
@matiascarpintini7062
@matiascarpintini7062 4 жыл бұрын
@@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
@ClayShentrup
@ClayShentrup 3 жыл бұрын
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
@wotok7
@wotok7 4 жыл бұрын
Here is the link to gorails discussions gorails.com/episodes/devise-hotwire-turbo?autoplay=1
@AllInForYah
@AllInForYah 2 жыл бұрын
This doesn't fix the issue for canceling an account
@powerfulmath8488
@powerfulmath8488 2 жыл бұрын
showed uninitialized constant application controller
@ricardovaltierra8858
@ricardovaltierra8858 3 жыл бұрын
Excellent video, thank you very much
How to Upgrade from Turbolinks to Hotwire & Turbo
11:22
GoRails
Рет қаралды 10 М.
How to use Hotwire in Rails
24:26
GoRails
Рет қаралды 57 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
o3 mini - I tried OpenAI new ChatGPT model
3:28
Codex Community
Рет қаралды 8 М.
How to Use Authentication in Ruby on Rails 8
13:59
Brian Casel
Рет қаралды 934
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 12 М.
Rails 8: The Demo
30:11
Ruby on Rails
Рет қаралды 44 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 14 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 264 М.
How To Use Import Maps with Rails
18:12
GoRails
Рет қаралды 2,3 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 44 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН