Let's Build: With Ruby On Rails - Blog With Comments

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 95

  • @Webcrunch
    @Webcrunch  7 ปีที่แล้ว +13

    Hey all! Apologies for some weird aspect ratio/audio issues on this one. Let me know if you'd prefer shorter videos in parts or one big long one like this for future videos. Thanks for watching!

    • @zerefdev
      @zerefdev 7 ปีที่แล้ว +3

      I think short videos are better 15-30min

    • @darklord4053
      @darklord4053 6 ปีที่แล้ว

      hi sir what can I do with my error , it says couldn't find Post with 'id'=

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว

      Hard to say without seeing your code. If you host it somewhere I can take a look 👍🏼

    • @ferrancabrer
      @ferrancabrer 6 ปีที่แล้ว +1

      I think that a large amount videos >3 for a tutorial as you have (5,7,9,...) are very difficult to manage in ytube and to have longer units are better for us.

    • @johanheidenberg5420
      @johanheidenberg5420 6 ปีที่แล้ว +1

      longer and thorough is better!

  • @acuencadev
    @acuencadev 4 ปีที่แล้ว +2

    I got a new job as a Python Developer, but they have a legacy project built on rails. Thanks to you now I have a decent understanding on how it works. I will continue watching your other series. Thanks!

    • @Webcrunch
      @Webcrunch  4 ปีที่แล้ว

      Awesome! Thanks for watching 🤘

  • @usmanmunir1559
    @usmanmunir1559 2 ปีที่แล้ว +3

    This channel has a lot of like the best bootcamps ever for ROR beginners ❤

    • @Webcrunch
      @Webcrunch  2 ปีที่แล้ว

      Tell your friends! 😁

  • @pjulioss
    @pjulioss 5 ปีที่แล้ว +2

    I'm starting to study Ruby and Ruby on Rails after seeing a post from you on dev.to I found your channel on youtube and I was happy to find out the amount of Rails content you have, I'll definitely do all the tutorials.
    Thank you for your dedication to making these content.

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว +2

      Thanks a lot for following along. Hit me up if you need help!

  • @leatinoso9319
    @leatinoso9319 4 ปีที่แล้ว +3

    Great help for people starting to learn Rails. Highly recommended.

  • @slopez8156
    @slopez8156 6 ปีที่แล้ว +3

    What a perfect, short, in-depth tutorial. Thanks so much for this tutorial!

  • @jarnalyrkar
    @jarnalyrkar 5 ปีที่แล้ว +3

    In order for the migration @1:07:40 to work automatically, we need to add a reference, so it should look like this: $ rails g migration AddPostRefToComments post:references
    Anyway, great videos man. I really enjoy them!

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      Thanks for watching. There are a bunch more on my channel. Check them out too!

  • @HalimReactz
    @HalimReactz ปีที่แล้ว

    Love the way you teach...

  • @28tindo
    @28tindo 4 ปีที่แล้ว +1

    Thanks buddy awesome tutorial

  • @WebertRLZ
    @WebertRLZ 4 ปีที่แล้ว

    This was the best web class I've ever seen. Congratulations.

  • @resurection96
    @resurection96 6 ปีที่แล้ว +1

    Nice job explaining every single detail with a principle/reason behind it. A lot of young coders like myself need reasons to understand rules better, and you did a very solid job at that. Whoever disliked this video is a salty coder haha.
    As far as your question if you should do hour+ long video's or in parts...something like a blog you can knock out in a 90 minute video...anything involving calling api's, using join tables & or a big project like an e-commerce website is easier to digest/learn when you break down the video into parts.
    I am less than 3 months into my coding career , and enjoy videos like your's where I break it up by one minute at time & writing comments of why you are doing this , why you are doing that.
    Thank you for taking time to answer my rookie questions Mr.Andy, means a lot sir.
    Is Rails your favorite backend language?

  • @ihos4m
    @ihos4m 4 ปีที่แล้ว +1

    Thanks for the tutorial.
    FYI, to add the posts route you just need the line `resources :posts`, the line `root "posts#index"` is to set the root to posts as well, not sure what does the `posts "posts#index"` do.

    • @Webcrunch
      @Webcrunch  4 ปีที่แล้ว

      That sets the default main url of the app. So localhost:3000 will load the index action on the posts controller by default

  • @nesuburak
    @nesuburak 4 ปีที่แล้ว +1

    thank you for tutorial I'm beginner this tuto is my first step to RoR :)

  • @faizco-darazshop7923
    @faizco-darazshop7923 4 ปีที่แล้ว +1

    Nice tutorial. Just one thing you can also use 'hirb' gem. Hirb gives you table looking view of records in rails console. I like that very much.

  • @unchart_d
    @unchart_d 5 ปีที่แล้ว

    Thank god i came across your Channel.

  • @cybersupremo7376
    @cybersupremo7376 5 ปีที่แล้ว +1

    A detailed and even better tutorial on Airbnb would be great.

  • @Cmajor165
    @Cmajor165 5 ปีที่แล้ว

    Hey Andy. Thanks a lot for this tutorial - it was easy to follow and well explained - appreciate it.

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      Thanks so much for following along 😊

  • @cybersupremo7376
    @cybersupremo7376 5 ปีที่แล้ว +1

    Great video tutorial. Please do a similar tutorial on Airbnb.

  • @СергейЛуконин
    @СергейЛуконин 4 ปีที่แล้ว +1

    Thanks for the tutorial!
    How to prevent Sublime from requests for register?

    • @Webcrunch
      @Webcrunch  4 ปีที่แล้ว

      Pay for it? :)

    • @СергейЛуконин
      @СергейЛуконин 4 ปีที่แล้ว

      @@Webcrunch But on earlier videos you have unregistered version with no requests for register ;) And I would pay if the price was adequate for a text editor for my hobby.

    • @Webcrunch
      @Webcrunch  4 ปีที่แล้ว

      Oh yeah, at that time I had a paid license from a previous employer.

  • @Thorax232
    @Thorax232 2 ปีที่แล้ว +2

    I like your natural pacing. You don't have to do the fake slowed-down voice a lot of tutorials do, which is really grading. I can kind of relax, chill and follow without worry or frustration.

    • @Webcrunch
      @Webcrunch  2 ปีที่แล้ว

      Thanks for the feedback! I feel like I'm more on the boring side but I try to make it compelling by being more thorough than a lot of other folks.

  • @NaveenKumar-sq8gz
    @NaveenKumar-sq8gz 6 ปีที่แล้ว +2

    Thanks a lots! I learned easily by your video😎💯🔥............🤝

  • @mehtabahmed6092
    @mehtabahmed6092 3 ปีที่แล้ว

    Thank you so much

  • @milangallas2561
    @milangallas2561 5 ปีที่แล้ว

    absolutely amazing tutorial !!!!!! thanks very much

  • @ericflorence9672
    @ericflorence9672 5 ปีที่แล้ว

    amazing videos and website! so much help, thank you for being you :)

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว +1

      Thanks for turning in! Glad to be of help

  • @rudiboshoff8201
    @rudiboshoff8201 4 ปีที่แล้ว

    You fantastic beast you. Thanks for the tutorial.

  • @shoaibalich
    @shoaibalich 7 ปีที่แล้ว +1

    Great start to the series Andy! You've explained stuff pretty well. There's just this one thing I'd like to point out though; I feel you rushed a bit with the _comment partial part. I really did not get that. Even the @post.comment.build part in the form. If you could explain that in some text doc or anything that would be great!

    • @Webcrunch
      @Webcrunch  7 ปีที่แล้ว +1

      Sure thing!
      It's a bit complicated but the @post.comments.build part of the form is similar to something like @comment.new. The "build" part allows us to create a new record and passes through a collection of objects. So, in this case, I'm creating a new comment on a specific post and passing through both the post id and comment attributes (id, name, email). Rails grabs these attributes and collectively creates a new comment on a blog post. Maybe read through some answers here and it might be a little more clear - stackoverflow.com/questions/4954313/build-vs-new-in-rails-3
      Hope this helps!

    • @shoaibalich
      @shoaibalich 7 ปีที่แล้ว +1

      Thank you for that! Made things much clearer :) Already in your Twittter tutorial now. Can't wait to start building my own app soon. And yes, I shall dwell deep into the abyss of SO. Cheers!

  • @tbamvclip2353
    @tbamvclip2353 6 ปีที่แล้ว

    Great Video

  • @LAXtotheMAX99
    @LAXtotheMAX99 5 ปีที่แล้ว

    Great tutorial, I really learned a lot. In the process though I am having trouble displaying the input on the index page as well as after creating the post, during the show method. The framework is set up on the index page but it is just missing the actual text and after you create the post the URL shows the post number, however, it is just a blank screen. Any advice?

    • @LAXtotheMAX99
      @LAXtotheMAX99 5 ปีที่แล้ว +1

      All fixed. I forgot to reference the post_params to my Create method

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      That one gets me all the time

  • @musicianoffailure-3804
    @musicianoffailure-3804 5 ปีที่แล้ว +1

    Great tutorial! I have few questions from a complete beginner though.
    1. Why don't you just use a scaffolding command that automatically creates the MVC sctructure for you?
    2. I don't quite understand Bulma. Do you just assign div classes to your view and it automatically does the CSS for you?

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      Scaffolding is great when you're 100% sure what you're doing. This was a beginner approach so doing those things by hand at first help you learn the ins and outs.
      Bulma is a CSS framework. It comes with some opinionated styles all ready to go. I liked using it so i didn't have to focus to heavily on design. So to answer your question, yes the classes take care of the design in most cases.

    • @musicianoffailure-3804
      @musicianoffailure-3804 5 ปีที่แล้ว +2

      @@Webcrunch i see. Thank you for answering!

    • @musicianoffailure-3804
      @musicianoffailure-3804 5 ปีที่แล้ว

      @@Webcrunch btw, how do I learn what does each classes on bulma do? Like, is there a site that lists how h1 class="title" will make the title look like?

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      bulma.io/ should get you what you're after

  • @resurection96
    @resurection96 6 ปีที่แล้ว

    27:18 you start to make the application.scss Set For Css , first time seeing it & would love to know how...my font did change as well so that's good, just never saw someone do that before

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      That's just a command built in to Sublime Text. For me(I'm on a mac) its command + P and then type "set syntax..."

    • @resurection96
      @resurection96 6 ปีที่แล้ว

      ahh ok, text editor's for code is well represented in my class, i am using atom , my class is like 1/3 VS, 1/3 subl and a 1/3 atom , thank you for the heads up

  • @MakeRandomVids
    @MakeRandomVids 5 ปีที่แล้ว

    Why does work? I assumed it would have to be

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว +1

      That's Rails at work. Under the hood it knows to render a collection if you pass it one in a render method like that.
      is actually rendering ...
      But based on conventions and file name patterns you can type way less for the same result.

    • @MakeRandomVids
      @MakeRandomVids 5 ปีที่แล้ว

      @@Webcrunch i honestly didnt expect a reply but this is superb. I will look into your course

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      @@MakeRandomVids Thanks for that. Here's a code for 10% off if you decide you want to give it a shot :)
      "H3LL0RA1LZ19"

  • @lordozb
    @lordozb 6 ปีที่แล้ว +1

    Why don't you use haml?

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      Just really never got into it.

  • @chinmayanand896
    @chinmayanand896 6 ปีที่แล้ว

    please one reply on that how would i create my own custom UI designs for my web pages, in case i dont wanna use bulma css stuff.
    please give a shot to this...this is a important thing to me... :(

    • @jarnalyrkar
      @jarnalyrkar 5 ปีที่แล้ว

      Anything in your app/assets/stylesheets folder will be included, so just create your stylesheets there.

  • @resurection96
    @resurection96 6 ปีที่แล้ว

    Would i be able to insert a different theme in the same place you have your hero documentation? New to bulma as well, and i do like the hero theme, but it's always good to learn different themes. so say the theme is called Taco
    could i do
    but say it's taco theme, could i do

    ???
    hope i worded my question correctly

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      Yeah you can customize however you prefer. I use Bulma simply to save time as it covers a lot of components out of the box. Typically I write completely custom CSS on real apps. You can modify some bulma variables to alter their respective color schemes. Check bulma.io/documentation/overview/variables/
      You would modify those variables if you like before the @import "bulma" declaration inside app/assets/stylesheets/application.scss

    • @resurection96
      @resurection96 6 ปีที่แล้ว

      thank you sir for the reply, a lot of the folks in the class are eventually transferring to node.js. however, the professor says to master rails 1st before you do that, so im like one of 5 people who are sticking with rails until we feel comfortable to move on. These tutorials EXPLAIN a lot about principles which is more meaningful for a young coder. Remembering a name and date is pointless, but learning principles helps remember the reason for something....this does this for this reason, this does that for that reason...thank you mr.andy!

  • @zekimertinceoglu774
    @zekimertinceoglu774 ปีที่แล้ว

    ıs thıs stıll relevant ıf ı want to do these lessons

    • @Webcrunch
      @Webcrunch  ปีที่แล้ว

      It's a bit dated but the core concepts are the same so I'd say it's relevant.

  • @TonyDehnke
    @TonyDehnke 6 ปีที่แล้ว +1

    Like the videos! One request, please don't have the intro music at 100% - blows away my eardrums each time a video starts.. please be conscious of our ears (and ear damage) and environment! :) Thanks for the great work.

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      I've heard this from quite a few folks. Future videos are a bit more tame. Sorry about that!

  • @seddiktagadirt320
    @seddiktagadirt320 6 ปีที่แล้ว

    You could just type exit to exit from bundle exec guard, you maybe know or not --'

  • @resurection96
    @resurection96 6 ปีที่แล้ว

    do i need to type in
    for bulma to work?
    seems like a silly question, just not sure

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      Not that I'm aware... Those are simply HTML comments

  • @hridayanandadas3528
    @hridayanandadas3528 3 ปีที่แล้ว

    Which theme and packages have you use…kindly comment

  • @cepheaus
    @cepheaus 6 ปีที่แล้ว +1

    Great tutorial :-)
    Something small, but deleting the comments of a post together with the post might be necessary in the real world.
    "
    if @post.comments
    Comment.where(post_id: @post.id).destroy_all
    end
    @post.destroy
    "
    in the destroy action of the post controller seems like the way to go about it.

    • @Webcrunch
      @Webcrunch  6 ปีที่แล้ว +1

      That's totally a way to go about it. You could probably refactor to doing this all on the Model level as well.
      class Post
      has_many :comments, dependent: :destroy
      end
      Here, if a post is deleted, so are its associated comments. Stuff like this is why I love Rails haha!

    • @cepheaus
      @cepheaus 6 ปีที่แล้ว +1

      Cool! Thanks dude

  • @funkyjamma
    @funkyjamma 5 ปีที่แล้ว

    you should have posted how you fixed better errors because for me it definitely isn't working and after hours of searching the internet it still isn't working.

    • @Webcrunch
      @Webcrunch  5 ปีที่แล้ว

      It's an optional gem. If you remove it from your Gemfile and run bundle install you should be back in business. What errors are you seeing?

    • @funkyjamma
      @funkyjamma 5 ปีที่แล้ว

      @@Webcrunch I know it's optional I just would have liked it to work. I have removed it now but I was just seeing the regular error screen no matter what I did

  • @i-am-oi
    @i-am-oi 4 ปีที่แล้ว

    When I run `guard init livereload` this error keeps popping up
    No such file or directory -- /usr/lib/ruby/vendor_ruby/guard/_guard-core
    Github error link ~
    github.com/guard/guard-livereload/issues/187

    • @debanjandey64
      @debanjandey64 3 ปีที่แล้ว

      Try using 'bundle exec guard init livereload'

  • @no_capboyyy
    @no_capboyyy 3 ปีที่แล้ว

    Привет всем, кто от Дударя пришел смотреть удаление комментариев

  • @oleh4405
    @oleh4405 3 ปีที่แล้ว

    sdf

  • @dillanteagle3726
    @dillanteagle3726 6 ปีที่แล้ว

    rails makes no sense compared to django

    • @jsceo
      @jsceo 5 ปีที่แล้ว

      why is that

    • @randerins
      @randerins 3 ปีที่แล้ว

      That's funny. It's exactly the opposite. Python is not even web's main purpose, first off. Unlike Ruby/Rails.