Course preview: RSpec + refactoring
10:28
Rails twitter clone - Part 2
16:57
Rails twitter clone - Part 1
17:02
Advanced Turbo Streams in Hotwire
3:51
New Rails authentication king?
4:57
Пікірлер
@tolaseadegbite1027
@tolaseadegbite1027 14 минут бұрын
Hello, how do I implement the controller params part? I generated devise controllers but the content is different from yours.
@ktaraszk
@ktaraszk 10 күн бұрын
Thank you for a such great howto, I was having issue with @xterm/xterm using importmaps, switching to esbuild resolved my issue!
@clementcoquille4153
@clementcoquille4153 21 күн бұрын
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
@krzysztofwawer6343
@krzysztofwawer6343 24 күн бұрын
What version of Safari you have been using? Safari has support for import maps
@subem81
@subem81 Ай бұрын
This is really fantastic, thank you for making it!
@shaikikbhalBasha
@shaikikbhalBasha Ай бұрын
thanks
@user-si9ds2lc2i
@user-si9ds2lc2i Ай бұрын
Must of the application works fine , the hamburger drop down doesn't work. (mobile menu)
@rapfan353
@rapfan353 2 ай бұрын
Great video and great channel found this video at the right time. Can you do a stripe subscription video please 🙏
@3pedroneto
@3pedroneto 2 ай бұрын
nice! thanks!
@someguyO2W
@someguyO2W 2 ай бұрын
That was cool
@Mr.Plutonium
@Mr.Plutonium 2 ай бұрын
Have you updated your setup?
@WinstonCodesOn
@WinstonCodesOn 2 ай бұрын
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'`
@lisapethick2613
@lisapethick2613 2 ай бұрын
Hugely helpful - thank you so much for posting this video and part 2.
@mrhaite
@mrhaite 2 ай бұрын
Does it worked like gem mailcatcher?
@Candyapplebone
@Candyapplebone 2 ай бұрын
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.
@devinlounge
@devinlounge 2 ай бұрын
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.
@SebastianSastre
@SebastianSastre 3 ай бұрын
Agreed!
@tomasvalent3876
@tomasvalent3876 3 ай бұрын
❤❤❤❤
@GabrielMartinez-ez9ue
@GabrielMartinez-ez9ue 3 ай бұрын
For someone new to rails, would you suggest not learning devise and stick to this one instead?
@rapid-ruby
@rapid-ruby 3 ай бұрын
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.
@ELDAR011288
@ELDAR011288 3 ай бұрын
🎉🎉🎉
@MarceloGonzalez-is3pu
@MarceloGonzalez-is3pu 3 ай бұрын
Excellent video!
@RiteshNayak
@RiteshNayak 3 ай бұрын
Thanks for sharing. Enjoyed seeing all videos as part of this series.
@alexk6444
@alexk6444 3 ай бұрын
Just stumbled on this video and gotta say, its amazing! About to binge watch all your vids
@crr4141
@crr4141 4 ай бұрын
You are amazing man. Thanks
@abdullahsaleh7196
@abdullahsaleh7196 4 ай бұрын
Keep going mate🔥🔥🔥🔥
@_caseyjames
@_caseyjames 4 ай бұрын
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)
@ricardomordaunt1101
@ricardomordaunt1101 4 ай бұрын
Thank you..
@the_adamtaylor
@the_adamtaylor 4 ай бұрын
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 😂
@hiddenwasabi
@hiddenwasabi 4 ай бұрын
Thanks for the easy to understand video!
@SebastianSastre
@SebastianSastre 4 ай бұрын
Thanks a lot, I've enjoyed every bit of it!
@SebastianSastre
@SebastianSastre 4 ай бұрын
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-wd3dp
@AkashGupta-wd3dp 4 ай бұрын
i am getting arguement error from testing api of signin method and also there is another issue authenticate by undefined method error
@rubyongainz
@rubyongainz 5 ай бұрын
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-ho3ng
@TechnicalConfidence-ho3ng 5 ай бұрын
very useful, Thank you!
@ryancaldwell6615
@ryancaldwell6615 5 ай бұрын
Your shorts are awesome 😄
@codecruz
@codecruz 5 ай бұрын
sooo good. the power from turbo anywhere! i love rails. awesome job!
@beWorldly
@beWorldly 5 ай бұрын
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-gm9in
@EricChua-gm9in 6 ай бұрын
I assume your twitter course is based on importmap?
@EricChua-gm9in
@EricChua-gm9in 6 ай бұрын
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-gm9in
@EricChua-gm9in 6 ай бұрын
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-ruby
@rapid-ruby 6 ай бұрын
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-gm9in
@EricChua-gm9in 6 ай бұрын
@@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.
@chrishabgood8900
@chrishabgood8900 6 ай бұрын
aren't module methods class methods by default?
@rapid-ruby
@rapid-ruby 6 ай бұрын
Nope, they are instance methods when included inside another class.
@chrishabgood8900
@chrishabgood8900 6 ай бұрын
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-ruby
@rapid-ruby 6 ай бұрын
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!
@samueltekle2267
@samueltekle2267 6 ай бұрын
Hey Pete, I'm learning a lot from your videos and being inspired. Thank you for sharing.
@seb4126
@seb4126 6 ай бұрын
Cloned. Thanks 👌🏻.
@kengreeff
@kengreeff 6 ай бұрын
Great stuff mate! I need to setup a doc like the one you are using for starting apps, really handy
@crr4141
@crr4141 6 ай бұрын
Cool
@phillipspc
@phillipspc 6 ай бұрын
Great tip! I’ve also avoided generators for that same reason
@lorenzoangelini5280
@lorenzoangelini5280 7 ай бұрын
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-ruby
@rapid-ruby 7 ай бұрын
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.
@emiribrahimbegovic813
@emiribrahimbegovic813 7 ай бұрын
Mailtrap so much better
@rapid-ruby
@rapid-ruby 7 ай бұрын
Oh yeah? What does it do better?
@rdalago
@rdalago 7 ай бұрын
Thanks!
@Ben-ni9bc
@Ben-ni9bc 7 ай бұрын
Thanks for yours videos. How can I do the same things with a select insteed a checkbox ?
@rapid-ruby
@rapid-ruby 7 ай бұрын
Thanks Ben! The same technique should work regardless of the form element being used!