Turbo Frames vs. Turbo Streams
8:25
Ruby on Rails vs. React JS
5:39
2 жыл бұрын
Пікірлер
@wpftutorial
@wpftutorial 4 күн бұрын
If you're using Rails with hotwire/turbo, you need to add data-turbo-action="advance" to each pagination link so the URL changes on click. Since this video was posted Pagy went from v5 to v8 and now you have to pass in an anchor_string param to the pagy backend function. In your controller it'll look something like: "@pagy, @leads = pagy(filtered, items: 10, anchor_string: 'data-turbo-action="advance"')" Thanks for the video saved me a ton of time!
@eidiazcas
@eidiazcas 10 күн бұрын
Ruby is Ok, but I hate its LSP, fragile and a lot of times useless
@mixandgo
@mixandgo 10 күн бұрын
I've written ruby code for 15 years without LSP, and it was fine. You don't really need it.
@MiguelPeniche
@MiguelPeniche 22 күн бұрын
I do like your video but OMG do we need to see your expressionless face while you read your screen all the time? Just read off camera! I really want to follow your stuff but no, too much ego these days.
@mixandgo
@mixandgo 19 күн бұрын
Here's something you should know: My goal in life is not to please entitled shitheads. So move on.
@mrRambleGamble
@mrRambleGamble Ай бұрын
Zoom in. The text is hard to see on mobile
@masoud-abedi
@masoud-abedi Ай бұрын
Thanks a lot for the content. I have a button on my form, and I want to run a render, but I need to send the output to a server. I'm trying to show a message, but I'm having trouble because of the render. Here's my code: def my_button mydata = render json: @project, include: [params[:include]] ... flash[:notice] = "#{t('project')} was successfully published with ID #{identifier}." respond_to do |format| format.html { redirect_to(@project) } format.rdf { render template: 'rdf/show' } format.json { render json: @project, include: [params[:include]] } end end Any ideas on how to fix this? Thanks!
@diegoiturra3134
@diegoiturra3134 Ай бұрын
Great video, thanks for inspiring
@mixandgo
@mixandgo Ай бұрын
Thank you
@rpf23543
@rpf23543 Ай бұрын
Thank you! Precise and clear, many options. Great!
@mixandgo
@mixandgo Ай бұрын
Glad to hear you like it
@climatemojo
@climatemojo Ай бұрын
Super helpful, Cezar. Thanks for the details on updating a frame other than the one initiating the action.
@mixandgo
@mixandgo Ай бұрын
Glad to hear you like it.
@TrisNowel
@TrisNowel Ай бұрын
Great channel. I’d like to thank you for making such informative content.
@mixandgo
@mixandgo Ай бұрын
I appreciate it.
@alessandro-desimone
@alessandro-desimone Ай бұрын
Nice video, thanks, but I am still in the rabbit hole. Every new Rails version states to simplify the assets pipeline ... adding new ways to do things. Anyway that's what we got, thanks for trying to clarify this complex topic.
@samuelcornet28
@samuelcornet28 Ай бұрын
Thank you for sharing!
@mixandgo
@mixandgo Ай бұрын
My pleasure.
@user-dv1vu1om6o
@user-dv1vu1om6o 2 ай бұрын
Very good
@dellanmuchengapadare3792
@dellanmuchengapadare3792 2 ай бұрын
How us thiis different frim the adapter pattern
@fuu812
@fuu812 Ай бұрын
Just googled it, seems like strategy operates on behavior, therefore should allow switching at any time. Eg. Study a topic by lecture, book or video.
@vinhlythe9788
@vinhlythe9788 2 ай бұрын
like this video because you attached github link
@fabiantorresm
@fabiantorresm 2 ай бұрын
Your channel is very good, I have learned a lot from you, thank you. Congratulations on your channel. Hey, sorry for the question, can you create a system of custom fields with this? For example, create a post that has an attribute called post_type that can be a post, page, product and depending on what the user chooses, a form with different fields is displayed, of course these fields will be saved in another table so that each type of post has its own attributes and each post its own values
@mixandgo
@mixandgo 2 ай бұрын
Thanks. I'm glad you like the channel. Sure. You can create that.
@alexax3888
@alexax3888 3 ай бұрын
Great video, thanks for the detailed steps. I installed this on an existing ror app and after finishing the steps from the video I got the error "Error ActionView::Template::Error (Asset `application.js` was not declared to be precompiled in production." I could fix this by running the rails javascript:install:esbuild command again.
@arnab5394
@arnab5394 3 ай бұрын
Nice one 👍
@mixandgo
@mixandgo 3 ай бұрын
Thank you
@baingfx
@baingfx 3 ай бұрын
Thank you! It's very useful video and helps resolve my problem.
@mixandgo
@mixandgo 3 ай бұрын
Happy to hear
@Mo0eY
@Mo0eY 3 ай бұрын
What drawing board app is that? And are you using an iPad to draw?
@mixandgo
@mixandgo 3 ай бұрын
Yes, I'm using an iPad. The app is called Notability.
@SketchupGuru
@SketchupGuru 3 ай бұрын
I have a website with 10k visits per month. Im currently learning the odin project and almost done with foundations. I live in Germany and i see a lot more jobs for JavaScript than ror. I want to eventually get a job but i really want to learnr ror. Do you think i should take the ror path or the JavaScript path.. thanks
@SketchupGuru
@SketchupGuru 3 ай бұрын
Also do you think I can use RoR skills to build a e-learning website?
@mixandgo
@mixandgo 3 ай бұрын
Currently, or at least in recent years, Javascript has become much more popular than Rails, and there are many more jobs for Javascript. I would say that if you want to play it safe, and get a job, go with Javascript. That's not to say you won't find jobs on Rails. But it's harder.
@mixandgo
@mixandgo 3 ай бұрын
@SketchupGuru You can definitely build any SaaS app with Rails. Also, you're still going to use Javascript with Rails. It's just that you don't rely as heavily on it because there are other (ahem, better) tools that Rails gives you.
@SketchupGuru
@SketchupGuru 3 ай бұрын
Got it. Thankyou brother
@adrianguzman9371
@adrianguzman9371 3 ай бұрын
As of 2024, the flags to start the project with esbuild and tailwind have changed a little. This is what I used: rails new project_name -T -j esbuild -c tailwind
@promiseuka
@promiseuka 3 ай бұрын
Glad I can always come back to re-watch this.
@mixandgo
@mixandgo 3 ай бұрын
There are more live stream recordings inside the members section.
@user-lm5vi4vx8r
@user-lm5vi4vx8r 3 ай бұрын
Thanks, I meet the problem when I using 'rails new -c bootstrap app1' command. Your video help me a lot.
@user-tw4oe3zj9x
@user-tw4oe3zj9x 3 ай бұрын
Thanks for sharing!
@TheStalinBR
@TheStalinBR 3 ай бұрын
Loved the debounce hint.
@mixandgo
@mixandgo 3 ай бұрын
I'm glad you found it helpful.
@alirzasahin8796
@alirzasahin8796 3 ай бұрын
I'm a 21 year old web developer with 2 years of experience with one in frontend and one in backend. I've been considering the idea of creating my own company and become a freelancer and this video really helped me to see an alternative way to my career. I'm currently applying for a job and they are using Ruby on Rails, I never heard or interacted with Ruby before but this past week I've been playing with it and thinking of how it could positively impact my career. I'm currently learning Rails and looking forward to see the power of it to utilize it as a tool in the future! Thank you for your video.
@mixandgo
@mixandgo 3 ай бұрын
Watch the videos on this channel to get a sense of what you can build with it. Also, feel free to join the live streams and ask any questions.
@deckbaskeyfield8356
@deckbaskeyfield8356 3 ай бұрын
Another excellent video!!! I am suprised that you haven't researched S M Z E U S!!
@FixEcomm
@FixEcomm 3 ай бұрын
thank you for sharing the planing step
@mixandgo
@mixandgo 3 ай бұрын
You're welcome
@agustinpalmam2923
@agustinpalmam2923 4 ай бұрын
Good video friend, thank you !
@RichardNavarrete1
@RichardNavarrete1 4 ай бұрын
I noticed you are using yarn 1.22.18, which is before the Yarn Plug'n Play. I upgraded to 4.10, which does use it, but it's making things difficult. For one, it adds "-load-path=node_modules" to my build:css:compile script, but does not build the node_modules folder, etc... it builds the pnp.cjs and accompanying loader. As a result, I'm getting Error: Can't find stylesheet to import. ╷ 1 │ @import 'bootstrap/scss/bootstrap'; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ directly when I try to run ./bin/rails css:install:bootstrap. I want to give PNP a try because it does sound like a good idea to embrace it, but it's not working for. What are your thoughts with that please?
@mixandgo
@mixandgo 3 ай бұрын
Haven't tried that yet. I'll let you know if I do.
@RichardNavarrete1
@RichardNavarrete1 3 ай бұрын
@@mixandgo I wound up giving up on PNP and going back go 1.22.18... much simpler. Also, I noticed that when I was using 4.10 / PNP that the console comments said it was experimental.
@mixandgo
@mixandgo 3 ай бұрын
@@RichardNavarrete1 makes sense. There are plenty of dependencies breaking in the latest versions of Rails. Adding one more doesn't sound very appealing to me :)
@shriharikulkarni07
@shriharikulkarni07 4 ай бұрын
Rails is honestly most mature framework out there for web development / api development
@colinrosati9403
@colinrosati9403 4 ай бұрын
Nuxt + Next can offer SSR + SSG. You can higher one fullstack to do both FE + BE. JS seems to be more performant with single threaded call stack. With JS you have on compiler bundler The argument for lack of framework conventions in JS is not really very a great argument in 2024 RoR has more CLI tooling but that not really a reason for an architecture desicion. TBH I still don’t get why we use RoR in 2024
@mixandgo
@mixandgo 4 ай бұрын
Have you used RoR? Especially with Hotwire, there's no point in building a SPA anymore in most cases.
@weerawu124
@weerawu124 4 ай бұрын
Your description perfectly matches BDD with Cucumber. Sadly, it's not as popular nowadays.
@user-ek2ot3rl3w
@user-ek2ot3rl3w 4 ай бұрын
Thank you for this
@mixandgo
@mixandgo 4 ай бұрын
You're welcome
@djooraTech
@djooraTech 4 ай бұрын
Why is it called "back of the napkin method"? Can't we use the "front of the napkin" to come up with ideas? Just wondering, that's all.
@mixandgo
@mixandgo 4 ай бұрын
Because the front is used for its intended purpose (wiping your mouth/hands).
@laughingvampire7555
@laughingvampire7555 4 ай бұрын
I don't understand the point of turbo-frame & turbo-streams, it looks messy compared to how it was done even with jQuery alone. HTMX & Alpine.js look a lot cleaner to me than hotwire.
@mixandgo
@mixandgo 4 ай бұрын
Well the point is you ca improve an existing (non-hotwire) site without doing much work. You don't need to change the old HTML to make the new one more reactive.
@TheKuhtaMusic
@TheKuhtaMusic 4 ай бұрын
in other words you can run any command and provide current file as an argument. I usually do rspec %:123 to run only the spec on 123 line of current file.
@mixandgo
@mixandgo 4 ай бұрын
Great tip, thanks for sharing.
@clairebayoda8325
@clairebayoda8325 5 ай бұрын
Hello! Thank you so much for sharing this tutorial. It looks like the sequence of commands for creating a new rails project may not be up to date anymore. What works for me: 'rails new instacard_reflex --skip-spring --webpack=stimulus'
@mixandgo
@mixandgo 5 ай бұрын
You are welcome Claire. You may want to check out some of my newer videos. Much has changed in the meantime.
@clairebayoda8325
@clairebayoda8325 5 ай бұрын
@@mixandgo No problem! I came across your GitHub repositories for this project, and they will be very helpful as I continue with this tutorial. Thank you!
@kitti.crafts
@kitti.crafts 5 ай бұрын
It’s helped me a lot❤
@mixandgo
@mixandgo 5 ай бұрын
Happy to hear that
@arcomarco7131
@arcomarco7131 5 ай бұрын
"Learning about computer science " be more specific ,what exactly?
@eichorcist
@eichorcist 5 ай бұрын
The twitter application is made with ruby ​​as the frontend, Even though there is a lot of animation in it, it still feels easy to navigate
@mixandgo
@mixandgo 5 ай бұрын
Ruby is not a front-end language. But Hotwire is, which is part of Ruby on Rails. And it can do a lot in terms of making reactive UIs.
@debmozumder
@debmozumder 5 ай бұрын
What are the secrets to become a ROR developer? You are ranting about very general advice!
@mixandgo
@mixandgo 5 ай бұрын
Becoming a RoR developer is pretty straight forward. Learn, and put in the work. This video is about becoming more than that.
@Gabriel-zr4kz
@Gabriel-zr4kz 5 ай бұрын
Unfortunately it's not dead
@PankajNikam
@PankajNikam 5 ай бұрын
Hey Cezar, cool T-Shirt :)
@mixandgo
@mixandgo 5 ай бұрын
Hah, thanks :)
@elvispalace
@elvispalace 6 ай бұрын
top WTF comparisons
@yosiyosiro3866
@yosiyosiro3866 6 ай бұрын
Ruby is definitely not for me. A lot of concept in Ruby made me confuse. Like I can't differentiate when is it expression or statement. Using symbol in function name definition (def isTrue?, def width=), define property setter or getter in a class is not intuitive for me, the Symbol usage is not clear and intuitive. Also when I learn Rails when giving validation to property in class (model class I think), I need to invoke certain validation function in a class. INVOKE inside a class, not inside a method. I have lost it and give up. Much prefer static type language like C#, more make sense.
@mixandgo
@mixandgo 6 ай бұрын
It's hard to learn a new language/syntax/mindset if you're trying to make it work like the one you already know. Languages are different and that's a good thing, because each one has a different way of solving a particular set of problems. Ruby/Rails are optimized for productivity, meaning you're less concerned with pleasing the compiler, and more concerned with pleasing the end user (by shipping fast). It's much less verbose than a static typed language, and that's one its strengths (not a weakness).
@bitwise2832
@bitwise2832 6 ай бұрын
This did not clear up anything...