This channel is the home for all videos uploaded to webcrunch.com. Webcrunch is a blog about design, development, and entrepreneurship. Subscribe for future videos!
Not working from scratch. It wants yanr/esbuild and other JS shit.
@Webcrunch3 күн бұрын
You might check your current node version and make sure it's current.
@ernepazzo12126 күн бұрын
Muchas gracias!!! Más Ruby on Rails y mucho menos JS. Estaremos al pendiente, saludos desde #Cuba.
@wfbraga20997 күн бұрын
I just got my first job as RoR developer. How did I do thar? By knowing people. I have apply to many companies and the one I got the job were where I had a former cliente from the time I used to work with other tech stuff.
@andyhemphill8 күн бұрын
Thanks heaps !!
@cesargomezu14598 күн бұрын
Professional guitarist with all the advanced performance degree's trying to switch to programming 👊🏼
@ErictheConqueror-gy6es16 күн бұрын
Step 1: be a senior developer
@Balabala-iq1ne16 күн бұрын
absolutely right, extremly rare find entry job with rails
@Webcrunch16 күн бұрын
Yeah, I don't love that this is the state of the market. I'm hoping it evolves with the resurgence of the Rails I've been seeing.
@promiseuka16 күн бұрын
This is really helpful. Thanks 👍
@Webcrunch16 күн бұрын
Glad to hear that!
@gracesoftmedia667016 күн бұрын
Thanks Andy I found it really helpful to me.
@Webcrunch16 күн бұрын
Great to hear!
@user-qn5xc3bw6q16 күн бұрын
Thanks for the video. Please add a video where we add fields which are not common to all the models
@timbd8718 күн бұрын
I learnt RoR over the last 8 years and just code for myself, but i don't test, and it's a huge gap in my skillset, the other one is security, need good courses on both
@RonDavisceo20 күн бұрын
can you help?
@mikopiko20 күн бұрын
Cool
@abdullahsaleh719621 күн бұрын
keep going 🫡
@mortjac23 күн бұрын
I liked the CSS shift to Tailwind. As I'm new to RoR, less is more. Looking forward to try it out!
@repoles23 күн бұрын
Thank you very much! I always watch your videos. They help me a lot!
@formigarafa23 күн бұрын
You don't really need that include in the controller if you are using the "static" method calls. You can think of include method pretty much as defining the methods in the module in the context of the class where it is being included. This won't apply for `def self.xyz` methods though. You can operate with the `def self.methods` in similar form using the extend method but the result affects the class not the instances (as include would). This rabbit hole goes a bit deeper, it is meta-programming all the way down. It would become a book on this comment.
@MarceloAlarcon-tx6qe23 күн бұрын
I think we can also use concerns in a controller to separate all methods that are not a direct action of the controller. For example a method to generate a cookie would go in the concern, while the action that uses it would obviously be in the controller. This is necessary because we can't use helpers in controllers. What do you think about this practice?
@haroldpepete24 күн бұрын
i have personally used concern in poymorphic associations and when i want some special behavior in several model, and i use module to declaree functions that i need to use in my controllers or services, working with component in rails i make a metaproming module to declare instance variables witth a default values making a merge of all parameters the component can recieve
@IanBradbury24 күн бұрын
Always super helpful videos. Thanks.
@Webcrunch23 күн бұрын
Happy to help!
@BubblegumSneaker24 күн бұрын
This helped me understand better something I already thought I understood.
@ahmed_aboelleef24 күн бұрын
thanks for sharing What is the editor theme name ?
@Webcrunch24 күн бұрын
Spacegray 80s I believe
@AndreyAzimov24 күн бұрын
I never understood how to use concerns or modules, so I just create a file in model directory help.rb and there I just have this "class Help ... end" with all my methods and constants. I can use this class anywhere (models, views, controller) in my rails app without even adding "include".
@djlclopez12825 күн бұрын
@Webcrunch Since you are a experienced Ruby developer, where can aspiring developers learn Ruby? I only know of some older classes on Udemy and codecademy, do you have recommendations?
@Webcrunch24 күн бұрын
I honestly learned best by trying to build something from scratch. I went backwards and started learning Rails before Ruby and along the way (it took a while) I learned ruby and then things just started clicking over time. You learn to spot bugs and errors and know immediately what to do. This was all before AI tools too, so it was even harder 😆
@marcusaureliusreturn26 күн бұрын
well done ❤🔥
@meshu_amareАй бұрын
I love it thanks for sharing but my question is, do we must have type attribute to use STI? I mean how the model understand type as a Car? Thanks
@WebcrunchАй бұрын
Yes, you need the type attribute 👍
@piotr-nowakАй бұрын
Cool... I'm a PHP guy, but hmy.... I'll have to think about it - what you say sounds encouraging to at least give it a try:D
@BenjaminMahmoodАй бұрын
Thanks for your perspective, really helped me alot with my decision on what to learn. So I will go with Rails! And I love your Rails UI Project! That's one thing I felt is missing for rails, a modern UI package
@WebcrunchАй бұрын
Glad it was helpful!
@LoneIgadzraАй бұрын
*Do not take ActiveRecord migrations for granted If you switch to another ecosystem, you will quickly miss them. In Java, it is normal to pay Flyway for the same features.* The main strengths of Rails that can truly speed a developer up are now the controversial choices: ActiveRecord as the ORM, and being HTML-first. HTML-first is coming back around, but I think AR is vastly misunderstood due to the ease of creating spaghetti. It combines a ton of different features, which in turn saves you a ton of time getting started. For most CRUD, you will never exceed its maintainability threshold, except for your app's most important domain models that inevitably grow into "god objects". (Those **will** need to refactored, and there is no one-way-fits-all method. I think the Rails guide could do a much better job of guiding new developers here.) AR's default lazy loading is also misunderstood! Developers clutch their pearls over view code causing database queries, not realizing that this default is **specifically** to support Rails fragment caching. Some other honorable mentions: - ActiveStorage represents months of work to re-create in any framework that doesn't have an equivalent. This feature alone brings me back to Rails when I just need something to work. - Almost every SAAS needs a job queue, and Rails has that as well. - Abusing Turbo to create highly interactive screens with just plain old Rails feels delightfully lazy. Most of the controversial stuff in Rails that developers bitch about endlessly has a reason for existing that they are misunderstanding.
@LoneIgadzraАй бұрын
"Convention over configuration" is I think over-explained and misunderstood these days. Many web frameworks now target this as far as they are able, but there are degrees. Most JS frameworks do not include an ORM or testing framework, for example. The environment in which these frameworks is exist is just too volatile. Rails aims to include absolutely *everything* you would need to make an MVP - especially including the ORM - with no developer decision to be made other than on how to build value.
@mistert1628Ай бұрын
having a lot of fun following this series with Rails 7 :-) Not to bad had a few gotcha's and had to rework things but having the precoded repo is useful to reference old vs new (tailwind css site was a life saver).
@jaycortes2113Ай бұрын
I was preparing myself to start a bootcamp. I can already create projects using React. When I was selecting the bootcamp Spiced is offering React and LeWagon Ruby on Rails. I got confused and signed a contract to go with the bootcamp that is going with rails. Now I am really scared that I won't find a job because my main language will be Ruby. So I was preparing myself for the bootcamp and got the wrong one. I will start in 2 weeks and I know almost nothing about RoR.
@WebcrunchАй бұрын
Being versed in React will always get you a job. Rails is definitely more niche but I think that's changing. It's tough to say what's the best path with tech moving so fast. I work in Rails daily but I'm actually a product designer by trade.
@baowarrior4892Ай бұрын
Nice! Thanks for sharing!
@thiagomrvieiraАй бұрын
Great video. I also come from the PHP world with Laravel, and having studied Rails quite a bit, I can see many similarities between both ecosystems. I have around 8 years of experience with PHP, and in recent years, I've been flirting with Rails. However, as you mentioned, many Rails developer positions require a bit more experience with the ecosystem. I can indeed write a REST API in Rails with testing and good practices overall, but I feel that my stronger foundation with PHP often weighs more heavily when applying for Rails positions. Anyway... In the meantime, I'll continue studying and hope to transition to Rails in the coming months.
@RonDavisceoАй бұрын
when i do - (localhost:3000/conversations/3/messages) i get +- (ActiveRecord::RecordNotFound in MessagesController#index Couldn't find Conversation with 'id'=3) def find_conversation @conversation = Conversation.find(params[:conversation_id]) end Any Idea on how to fix?
@rpf23543Ай бұрын
For sure! Yes! I’m tired of Devs thinking they always have to start a new trend and follow it. Like, AI pops up and every KZreadr is going to make a video about if and how we will be replaced. Ruby and Rails is more up to date as ever.
@malharparmar396Ай бұрын
Awesome
@promiseukaАй бұрын
This is great 💪💪💪
@abdullahsaleh7196Ай бұрын
Yoo that’s crazy, wow keep going We want another video😅
@carltanner3632Ай бұрын
This is a great effort. I am doing something similar myself, but a multi-tenant, Jumpstart Rails adaptation. Would I be able to use RailsUI in a multi-tenant environment?
@WebcrunchАй бұрын
Yes, it would work fine for the mult tenant world I think. It's mostly a UI kit that's integrated into your Rails app with some other bells and whistles.
@mycode0Ай бұрын
Amazing progress, I fear that I would never have enough money to pay for such high quality product... Have you though on the pricing yet ?
@WebcrunchАй бұрын
Nonstop 😆 I haven't landed on anything final yet but will have to just decide and commit soon.
@mycode0Ай бұрын
@@Webcrunch I would completely understand if it not a small price to pay for something like this maybe if it's possible to implement something like 3 or 6 monthly instalments (idk) . I really wanted to support products like tailwind ui or jumpstart for example, but I am simply not at a point of my life where I can pay $200, 300 and more at once without significantly hurting my budget. My salary in Bulgaria is around $600 per month.
@WebcrunchАй бұрын
Totally get it! Will try and keep this in mind. I think the hard part is managing all the variants of plan intervals.
@mycode0Ай бұрын
@@Webcrunch No I completely understand
@laugustouАй бұрын
Maybe a parity program
@joey2545Ай бұрын
Great advice and examples!
@WebcrunchАй бұрын
Glad it was helpful!
@suiteyousirАй бұрын
Could you please do a video on how to set up vs code for ruby development, thank you
@WebcrunchАй бұрын
Good idea!
@suiteyousirАй бұрын
@@Webcrunch I started out using c# as a junior dev and loved visual studio because of all the features like clicking through a method. The search feature and changing all method names at once. I've now switched to a ruby project but struggled to replicate that experience in Vs code.
@tusharjha9293Ай бұрын
i made the app yesterday and again opened localhost today. i am still signed in but i am not able to do anything because it says "i am unauthorised". it was working fine yesterday. i am assuming it is because of token expiry. the access tokens which were stored in local storage might have gotten expired in 1 hour and that's why i am not able to do anything now. any idea how to either refresh the tokens or to signout after 1 hour
@certilremyАй бұрын
Man thank you so much for this video. You'll never know how mutch I apreciate this video, it save my live.
@WebcrunchАй бұрын
Glad it helped!
@Ironman2.0xCodeАй бұрын
can someone tell which Database has been used here
@WebcrunchАй бұрын
For the demo it was sqlite but for production environments I recommend postgresql 👍
@DevlogBillАй бұрын
I am really trying to stay away from JavaScript for the backend. I've been considering Ruby on Rails for a React project. How good is Ruby when it comes to creating a Restful API? Just curious to see how quickly you can create one?
@WebcrunchАй бұрын
Rails is great for APIs. You can even create an API version when scaffolding a new app which ignores the view layer. This option is designed for apps that just want the backend and you bring your own frontend with React or similar.
@DevlogBillАй бұрын
@@Webcrunch Thanks Webcrunch I will soon try out Rails to see the developer experience is for me. I heard story about starting a brand new project can be painful but I also heard once you pass this step that things are much easier. I will what my experience will be for me thanks once again.
@MikesMidnightWhispersАй бұрын
as a beginner. rails has made crud inCRUDbly easy. so far nothing has come this far.
@WebcrunchАй бұрын
InCRUDible!
@ingyaroslav2 ай бұрын
Where does the text come from??? Can anyone tell? Absolutely nothing is clear!
@WebcrunchАй бұрын
It's generated with JavaScript
@stanislavvranic17452 ай бұрын
Does anyone work separate desktop-mobile these days???
@trevordev5552 ай бұрын
.NET developer who has started working with Ruby and Rails full-time now its all a bit strange to me but what is obvious is just how mature it is even now with dotnet core tooling the .NET eco system doesn't have the mature feeling of tooling and web frameworks but what has impressed me the most is the passionate community Ruby/Rails developers generally seem much happier :-)
@Webcrunch2 ай бұрын
It's definitely a joy to work with in my opinion. I think that's by design. I'll refer back to the doctrine often and find it resonates with my own views a lot rubyonrails.org/doctrine
@mistert16282 ай бұрын
@Webcrunch I watched DHH's documentary such an inspiring guy I can see how and why the Rails community is what is today.
Пікірлер
Not working from scratch. It wants yanr/esbuild and other JS shit.
You might check your current node version and make sure it's current.
Muchas gracias!!! Más Ruby on Rails y mucho menos JS. Estaremos al pendiente, saludos desde #Cuba.
I just got my first job as RoR developer. How did I do thar? By knowing people. I have apply to many companies and the one I got the job were where I had a former cliente from the time I used to work with other tech stuff.
Thanks heaps !!
Professional guitarist with all the advanced performance degree's trying to switch to programming 👊🏼
Step 1: be a senior developer
absolutely right, extremly rare find entry job with rails
Yeah, I don't love that this is the state of the market. I'm hoping it evolves with the resurgence of the Rails I've been seeing.
This is really helpful. Thanks 👍
Glad to hear that!
Thanks Andy I found it really helpful to me.
Great to hear!
Thanks for the video. Please add a video where we add fields which are not common to all the models
I learnt RoR over the last 8 years and just code for myself, but i don't test, and it's a huge gap in my skillset, the other one is security, need good courses on both
can you help?
Cool
keep going 🫡
I liked the CSS shift to Tailwind. As I'm new to RoR, less is more. Looking forward to try it out!
Thank you very much! I always watch your videos. They help me a lot!
You don't really need that include in the controller if you are using the "static" method calls. You can think of include method pretty much as defining the methods in the module in the context of the class where it is being included. This won't apply for `def self.xyz` methods though. You can operate with the `def self.methods` in similar form using the extend method but the result affects the class not the instances (as include would). This rabbit hole goes a bit deeper, it is meta-programming all the way down. It would become a book on this comment.
I think we can also use concerns in a controller to separate all methods that are not a direct action of the controller. For example a method to generate a cookie would go in the concern, while the action that uses it would obviously be in the controller. This is necessary because we can't use helpers in controllers. What do you think about this practice?
i have personally used concern in poymorphic associations and when i want some special behavior in several model, and i use module to declaree functions that i need to use in my controllers or services, working with component in rails i make a metaproming module to declare instance variables witth a default values making a merge of all parameters the component can recieve
Always super helpful videos. Thanks.
Happy to help!
This helped me understand better something I already thought I understood.
thanks for sharing What is the editor theme name ?
Spacegray 80s I believe
I never understood how to use concerns or modules, so I just create a file in model directory help.rb and there I just have this "class Help ... end" with all my methods and constants. I can use this class anywhere (models, views, controller) in my rails app without even adding "include".
@Webcrunch Since you are a experienced Ruby developer, where can aspiring developers learn Ruby? I only know of some older classes on Udemy and codecademy, do you have recommendations?
I honestly learned best by trying to build something from scratch. I went backwards and started learning Rails before Ruby and along the way (it took a while) I learned ruby and then things just started clicking over time. You learn to spot bugs and errors and know immediately what to do. This was all before AI tools too, so it was even harder 😆
well done ❤🔥
I love it thanks for sharing but my question is, do we must have type attribute to use STI? I mean how the model understand type as a Car? Thanks
Yes, you need the type attribute 👍
Cool... I'm a PHP guy, but hmy.... I'll have to think about it - what you say sounds encouraging to at least give it a try:D
Thanks for your perspective, really helped me alot with my decision on what to learn. So I will go with Rails! And I love your Rails UI Project! That's one thing I felt is missing for rails, a modern UI package
Glad it was helpful!
*Do not take ActiveRecord migrations for granted If you switch to another ecosystem, you will quickly miss them. In Java, it is normal to pay Flyway for the same features.* The main strengths of Rails that can truly speed a developer up are now the controversial choices: ActiveRecord as the ORM, and being HTML-first. HTML-first is coming back around, but I think AR is vastly misunderstood due to the ease of creating spaghetti. It combines a ton of different features, which in turn saves you a ton of time getting started. For most CRUD, you will never exceed its maintainability threshold, except for your app's most important domain models that inevitably grow into "god objects". (Those **will** need to refactored, and there is no one-way-fits-all method. I think the Rails guide could do a much better job of guiding new developers here.) AR's default lazy loading is also misunderstood! Developers clutch their pearls over view code causing database queries, not realizing that this default is **specifically** to support Rails fragment caching. Some other honorable mentions: - ActiveStorage represents months of work to re-create in any framework that doesn't have an equivalent. This feature alone brings me back to Rails when I just need something to work. - Almost every SAAS needs a job queue, and Rails has that as well. - Abusing Turbo to create highly interactive screens with just plain old Rails feels delightfully lazy. Most of the controversial stuff in Rails that developers bitch about endlessly has a reason for existing that they are misunderstanding.
"Convention over configuration" is I think over-explained and misunderstood these days. Many web frameworks now target this as far as they are able, but there are degrees. Most JS frameworks do not include an ORM or testing framework, for example. The environment in which these frameworks is exist is just too volatile. Rails aims to include absolutely *everything* you would need to make an MVP - especially including the ORM - with no developer decision to be made other than on how to build value.
having a lot of fun following this series with Rails 7 :-) Not to bad had a few gotcha's and had to rework things but having the precoded repo is useful to reference old vs new (tailwind css site was a life saver).
I was preparing myself to start a bootcamp. I can already create projects using React. When I was selecting the bootcamp Spiced is offering React and LeWagon Ruby on Rails. I got confused and signed a contract to go with the bootcamp that is going with rails. Now I am really scared that I won't find a job because my main language will be Ruby. So I was preparing myself for the bootcamp and got the wrong one. I will start in 2 weeks and I know almost nothing about RoR.
Being versed in React will always get you a job. Rails is definitely more niche but I think that's changing. It's tough to say what's the best path with tech moving so fast. I work in Rails daily but I'm actually a product designer by trade.
Nice! Thanks for sharing!
Great video. I also come from the PHP world with Laravel, and having studied Rails quite a bit, I can see many similarities between both ecosystems. I have around 8 years of experience with PHP, and in recent years, I've been flirting with Rails. However, as you mentioned, many Rails developer positions require a bit more experience with the ecosystem. I can indeed write a REST API in Rails with testing and good practices overall, but I feel that my stronger foundation with PHP often weighs more heavily when applying for Rails positions. Anyway... In the meantime, I'll continue studying and hope to transition to Rails in the coming months.
when i do - (localhost:3000/conversations/3/messages) i get +- (ActiveRecord::RecordNotFound in MessagesController#index Couldn't find Conversation with 'id'=3) def find_conversation @conversation = Conversation.find(params[:conversation_id]) end Any Idea on how to fix?
For sure! Yes! I’m tired of Devs thinking they always have to start a new trend and follow it. Like, AI pops up and every KZreadr is going to make a video about if and how we will be replaced. Ruby and Rails is more up to date as ever.
Awesome
This is great 💪💪💪
Yoo that’s crazy, wow keep going We want another video😅
This is a great effort. I am doing something similar myself, but a multi-tenant, Jumpstart Rails adaptation. Would I be able to use RailsUI in a multi-tenant environment?
Yes, it would work fine for the mult tenant world I think. It's mostly a UI kit that's integrated into your Rails app with some other bells and whistles.
Amazing progress, I fear that I would never have enough money to pay for such high quality product... Have you though on the pricing yet ?
Nonstop 😆 I haven't landed on anything final yet but will have to just decide and commit soon.
@@Webcrunch I would completely understand if it not a small price to pay for something like this maybe if it's possible to implement something like 3 or 6 monthly instalments (idk) . I really wanted to support products like tailwind ui or jumpstart for example, but I am simply not at a point of my life where I can pay $200, 300 and more at once without significantly hurting my budget. My salary in Bulgaria is around $600 per month.
Totally get it! Will try and keep this in mind. I think the hard part is managing all the variants of plan intervals.
@@Webcrunch No I completely understand
Maybe a parity program
Great advice and examples!
Glad it was helpful!
Could you please do a video on how to set up vs code for ruby development, thank you
Good idea!
@@Webcrunch I started out using c# as a junior dev and loved visual studio because of all the features like clicking through a method. The search feature and changing all method names at once. I've now switched to a ruby project but struggled to replicate that experience in Vs code.
i made the app yesterday and again opened localhost today. i am still signed in but i am not able to do anything because it says "i am unauthorised". it was working fine yesterday. i am assuming it is because of token expiry. the access tokens which were stored in local storage might have gotten expired in 1 hour and that's why i am not able to do anything now. any idea how to either refresh the tokens or to signout after 1 hour
Man thank you so much for this video. You'll never know how mutch I apreciate this video, it save my live.
Glad it helped!
can someone tell which Database has been used here
For the demo it was sqlite but for production environments I recommend postgresql 👍
I am really trying to stay away from JavaScript for the backend. I've been considering Ruby on Rails for a React project. How good is Ruby when it comes to creating a Restful API? Just curious to see how quickly you can create one?
Rails is great for APIs. You can even create an API version when scaffolding a new app which ignores the view layer. This option is designed for apps that just want the backend and you bring your own frontend with React or similar.
@@Webcrunch Thanks Webcrunch I will soon try out Rails to see the developer experience is for me. I heard story about starting a brand new project can be painful but I also heard once you pass this step that things are much easier. I will what my experience will be for me thanks once again.
as a beginner. rails has made crud inCRUDbly easy. so far nothing has come this far.
InCRUDible!
Where does the text come from??? Can anyone tell? Absolutely nothing is clear!
It's generated with JavaScript
Does anyone work separate desktop-mobile these days???
.NET developer who has started working with Ruby and Rails full-time now its all a bit strange to me but what is obvious is just how mature it is even now with dotnet core tooling the .NET eco system doesn't have the mature feeling of tooling and web frameworks but what has impressed me the most is the passionate community Ruby/Rails developers generally seem much happier :-)
It's definitely a joy to work with in my opinion. I think that's by design. I'll refer back to the doctrine often and find it resonates with my own views a lot rubyonrails.org/doctrine
@Webcrunch I watched DHH's documentary such an inspiring guy I can see how and why the Rails community is what is today.