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!
@eidiazcas10 күн бұрын
Ruby is Ok, but I hate its LSP, fragile and a lot of times useless
@mixandgo10 күн бұрын
I've written ruby code for 15 years without LSP, and it was fine. You don't really need it.
@MiguelPeniche22 күн бұрын
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.
@mixandgo19 күн бұрын
Here's something you should know: My goal in life is not to please entitled shitheads. So move on.
@mrRambleGambleАй бұрын
Zoom in. The text is hard to see on mobile
@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Ай бұрын
Great video, thanks for inspiring
@mixandgoАй бұрын
Thank you
@rpf23543Ай бұрын
Thank you! Precise and clear, many options. Great!
@mixandgoАй бұрын
Glad to hear you like it
@climatemojoАй бұрын
Super helpful, Cezar. Thanks for the details on updating a frame other than the one initiating the action.
@mixandgoАй бұрын
Glad to hear you like it.
@TrisNowelАй бұрын
Great channel. I’d like to thank you for making such informative content.
@mixandgoАй бұрын
I appreciate it.
@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Ай бұрын
Thank you for sharing!
@mixandgoАй бұрын
My pleasure.
@user-dv1vu1om6o2 ай бұрын
Very good
@dellanmuchengapadare37922 ай бұрын
How us thiis different frim the adapter pattern
@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.
@vinhlythe97882 ай бұрын
like this video because you attached github link
@fabiantorresm2 ай бұрын
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
@mixandgo2 ай бұрын
Thanks. I'm glad you like the channel. Sure. You can create that.
@alexax38883 ай бұрын
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.
@arnab53943 ай бұрын
Nice one 👍
@mixandgo3 ай бұрын
Thank you
@baingfx3 ай бұрын
Thank you! It's very useful video and helps resolve my problem.
@mixandgo3 ай бұрын
Happy to hear
@Mo0eY3 ай бұрын
What drawing board app is that? And are you using an iPad to draw?
@mixandgo3 ай бұрын
Yes, I'm using an iPad. The app is called Notability.
@SketchupGuru3 ай бұрын
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
@SketchupGuru3 ай бұрын
Also do you think I can use RoR skills to build a e-learning website?
@mixandgo3 ай бұрын
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.
@mixandgo3 ай бұрын
@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.
@SketchupGuru3 ай бұрын
Got it. Thankyou brother
@adrianguzman93713 ай бұрын
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
@promiseuka3 ай бұрын
Glad I can always come back to re-watch this.
@mixandgo3 ай бұрын
There are more live stream recordings inside the members section.
@user-lm5vi4vx8r3 ай бұрын
Thanks, I meet the problem when I using 'rails new -c bootstrap app1' command. Your video help me a lot.
@user-tw4oe3zj9x3 ай бұрын
Thanks for sharing!
@TheStalinBR3 ай бұрын
Loved the debounce hint.
@mixandgo3 ай бұрын
I'm glad you found it helpful.
@alirzasahin87963 ай бұрын
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.
@mixandgo3 ай бұрын
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.
@deckbaskeyfield83563 ай бұрын
Another excellent video!!! I am suprised that you haven't researched S M Z E U S!!
@FixEcomm3 ай бұрын
thank you for sharing the planing step
@mixandgo3 ай бұрын
You're welcome
@agustinpalmam29234 ай бұрын
Good video friend, thank you !
@RichardNavarrete14 ай бұрын
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?
@mixandgo3 ай бұрын
Haven't tried that yet. I'll let you know if I do.
@RichardNavarrete13 ай бұрын
@@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.
@mixandgo3 ай бұрын
@@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 :)
@shriharikulkarni074 ай бұрын
Rails is honestly most mature framework out there for web development / api development
@colinrosati94034 ай бұрын
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
@mixandgo4 ай бұрын
Have you used RoR? Especially with Hotwire, there's no point in building a SPA anymore in most cases.
@weerawu1244 ай бұрын
Your description perfectly matches BDD with Cucumber. Sadly, it's not as popular nowadays.
@user-ek2ot3rl3w4 ай бұрын
Thank you for this
@mixandgo4 ай бұрын
You're welcome
@djooraTech4 ай бұрын
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.
@mixandgo4 ай бұрын
Because the front is used for its intended purpose (wiping your mouth/hands).
@laughingvampire75554 ай бұрын
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.
@mixandgo4 ай бұрын
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.
@TheKuhtaMusic4 ай бұрын
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.
@mixandgo4 ай бұрын
Great tip, thanks for sharing.
@clairebayoda83255 ай бұрын
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'
@mixandgo5 ай бұрын
You are welcome Claire. You may want to check out some of my newer videos. Much has changed in the meantime.
@clairebayoda83255 ай бұрын
@@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.crafts5 ай бұрын
It’s helped me a lot❤
@mixandgo5 ай бұрын
Happy to hear that
@arcomarco71315 ай бұрын
"Learning about computer science " be more specific ,what exactly?
@eichorcist5 ай бұрын
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
@mixandgo5 ай бұрын
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.
@debmozumder5 ай бұрын
What are the secrets to become a ROR developer? You are ranting about very general advice!
@mixandgo5 ай бұрын
Becoming a RoR developer is pretty straight forward. Learn, and put in the work. This video is about becoming more than that.
@Gabriel-zr4kz5 ай бұрын
Unfortunately it's not dead
@PankajNikam5 ай бұрын
Hey Cezar, cool T-Shirt :)
@mixandgo5 ай бұрын
Hah, thanks :)
@elvispalace6 ай бұрын
top WTF comparisons
@yosiyosiro38666 ай бұрын
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.
@mixandgo6 ай бұрын
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).