Hello, how do I implement the controller params part? I generated devise controllers but the content is different from yours.
@ktaraszk10 күн бұрын
Thank you for a such great howto, I was having issue with @xterm/xterm using importmaps, switching to esbuild resolved my issue!
@clementcoquille415321 күн бұрын
Nice one ! Couldnt we improve it futher more by sending a turbo_stream :replace instead of re-sending the whole page ? Clicking radio buttons reload the whole page, when it could only send the desired tags
@krzysztofwawer634324 күн бұрын
What version of Safari you have been using? Safari has support for import maps
@subem81Ай бұрын
This is really fantastic, thank you for making it!
@shaikikbhalBashaАй бұрын
thanks
@user-si9ds2lc2iАй бұрын
Must of the application works fine , the hamburger drop down doesn't work. (mobile menu)
@rapfan3532 ай бұрын
Great video and great channel found this video at the right time. Can you do a stripe subscription video please 🙏
@3pedroneto2 ай бұрын
nice! thanks!
@someguyO2W2 ай бұрын
That was cool
@Mr.Plutonium2 ай бұрын
Have you updated your setup?
@WinstonCodesOn2 ай бұрын
Thanks so much for posting your sample code. Found out that my `turbo_stream_from` tag wouldn't work because my JS was using `import '@hotwired/turbo'` instead of `import '@hotwired/turbo-rails'`
@lisapethick26132 ай бұрын
Hugely helpful - thank you so much for posting this video and part 2.
@mrhaite2 ай бұрын
Does it worked like gem mailcatcher?
@Candyapplebone2 ай бұрын
Wow, that’s neat. So you can make your fragments like components from single page applications. I’ve been using react for the last three years but now that I’m between jobs, I’m picking Ruby back up since I played around with Ruby seven years ago. I was going to go with API only mode for Ruby on rails and just use react for the front end. But then I was talking about it in the Reddit about Ruby on rails, and they were saying things like why would you go out of your way to make an API when you can just use ERB and hotwire and all that stuff. And then I thought about it, yeah, I would have to write all of that boilerplate API code, so that the react front end could actually make request to the rails back end. I’m sure there’s a library that could come up with the Chava script API client so that in the reacts front end, all I have to do is call premade methods. But still, it sounds like going with ERB should be way simpler if I actually hypothetically knew how to do it all.
@devinlounge2 ай бұрын
Hello, my friend so. I migrated from the Devise to native secure methods. But I need a solution to provide an API sign-in, giving some tokens and going to controllers that need this authenticated user using this method.
@SebastianSastre3 ай бұрын
Agreed!
@tomasvalent38763 ай бұрын
❤❤❤❤
@GabrielMartinez-ez9ue3 ай бұрын
For someone new to rails, would you suggest not learning devise and stick to this one instead?
@rapid-ruby3 ай бұрын
Hey Gabriel, yes, most definitely, devise has a lot of magic going on underneath and I think it can be tricky to grasp. At least with this you can look at all the controllers that have been generated for you.
@ELDAR0112883 ай бұрын
🎉🎉🎉
@MarceloGonzalez-is3pu3 ай бұрын
Excellent video!
@RiteshNayak3 ай бұрын
Thanks for sharing. Enjoyed seeing all videos as part of this series.
@alexk64443 ай бұрын
Just stumbled on this video and gotta say, its amazing! About to binge watch all your vids
@crr41414 ай бұрын
You are amazing man. Thanks
@abdullahsaleh71964 ай бұрын
Keep going mate🔥🔥🔥🔥
@_caseyjames4 ай бұрын
Hey Pete, thanks for the videos; I've noticed when trying to render a partial as a turbo frame with Stimulus with an openModal() { this.element.classList.remove("hidden");} function. -> it doesn't seem to work on displaying the modal box but I can get stimulus to close one? Any ideas (sorry if i'm not articulating the problem properly)
@ricardomordaunt11014 ай бұрын
Thank you..
@the_adamtaylor4 ай бұрын
Noting for future folks-if you're using the latest view_component gem (like I am) the syntax is different! Instead of just calling `c.body` you need to use `c.with_body`. This was a subtle but very tricky difference that took me forever to figure out. I kept reading over the same portion of their docs until I realized their syntax was different 😂
@hiddenwasabi4 ай бұрын
Thanks for the easy to understand video!
@SebastianSastre4 ай бұрын
Thanks a lot, I've enjoyed every bit of it!
@SebastianSastre4 ай бұрын
That was a nice start. At the very end I got the when signed out redirect test passing but for the signed in it was complaining with: 1) Home GET / when signed in returns http success Failure/Error: before { sign_in(user) } NoMethodError: undefined method `sign_in' for #<RSpec::ExampleGroups::Home::GET::WhenSignedIn "returns http success" (./spec/requests/home_spec.rb:8)> In support_request_spec_helper.rb I do have: ... def sign_in(resource) login_as(resource, scope: warden_scope(resource)) resource end ...
@AkashGupta-wd3dp4 ай бұрын
i am getting arguement error from testing api of signin method and also there is another issue authenticate by undefined method error
@rubyongainz5 ай бұрын
about hotwire + turbo stuff i never crossed better channel, thank you for letting me understand more and more this stuff as i reject the modernity and embrace railsity nowadays. Much appreciated your effort. Keep this amazing work coming for us newbies
@TechnicalConfidence-ho3ng5 ай бұрын
very useful, Thank you!
@ryancaldwell66155 ай бұрын
Your shorts are awesome 😄
@codecruz5 ай бұрын
sooo good. the power from turbo anywhere! i love rails. awesome job!
@beWorldly5 ай бұрын
Thanks for bringing this amazing gem to my attention. I cannot stand Devise, so this is a very welcome change! It boggles my mind how difficult it is to do any kind of customization in Devise, and a gem like this is EXACTLY what I have been looking for! so Thank you!
@EricChua-gm9in6 ай бұрын
I assume your twitter course is based on importmap?
@EricChua-gm9in6 ай бұрын
I noticed you have data-controller="toggle" in body and profile dropdown div for desktop. I assume, since I have add it in body, I don't need to repeat it again, right?
@EricChua-gm9in6 ай бұрын
Thanks for the video. Two questions, a. how do you link the login and register to use auth.html.erb and not the default layout application.html.erb? Do you also recommend to have separate layouts like your video? b. Is there a reason to favor esbuild over importmap? Thanks.
@rapid-ruby6 ай бұрын
Hey Eric! A) you put “layout ‘auth’” into your controller for signups and sign ins. B) yeah, I made a video on migrating to esbuild and explain in that why I made the switch, I hope that helps!
@EricChua-gm9in6 ай бұрын
@@rapid-ruby I looked into the controllers folder, I could see only application_controller.rb and pages_controller.rb (also concerns folder). Wonder how come it knows how to use the auth.html.erb layout instead? I can't find the "layout 'auth'" codes if based on part I and II videos.
@chrishabgood89006 ай бұрын
aren't module methods class methods by default?
@rapid-ruby6 ай бұрын
Nope, they are instance methods when included inside another class.
@chrishabgood89006 ай бұрын
right but that is doing something with a module, not by itself. you can also extend if you wish to do do something else with it. @@rapid-ruby
@rapid-ruby6 ай бұрын
Yeah but if you create a module and just add those methods, you can’t just call them, without using module_function or extend self. Try it out!
@samueltekle22676 ай бұрын
Hey Pete, I'm learning a lot from your videos and being inspired. Thank you for sharing.
@seb41266 ай бұрын
Cloned. Thanks 👌🏻.
@kengreeff6 ай бұрын
Great stuff mate! I need to setup a doc like the one you are using for starting apps, really handy
@crr41416 ай бұрын
Cool
@phillipspc6 ай бұрын
Great tip! I’ve also avoided generators for that same reason
@lorenzoangelini52807 ай бұрын
Congratulations for this amazing course! I subscribed yesterday to the premium episodes and I have already watched all of them :) May I ask you what vscode extensions are you using? Thank you!
@rapid-ruby7 ай бұрын
Wow awesome, glad you enjoyed them! I’ve had a lot of people asking about my vscode setup, I’ll maybe make a quick video to showcase how I have it set up soon.
@emiribrahimbegovic8137 ай бұрын
Mailtrap so much better
@rapid-ruby7 ай бұрын
Oh yeah? What does it do better?
@rdalago7 ай бұрын
Thanks!
@Ben-ni9bc7 ай бұрын
Thanks for yours videos. How can I do the same things with a select insteed a checkbox ?
@rapid-ruby7 ай бұрын
Thanks Ben! The same technique should work regardless of the form element being used!