Ruby On Rails In 60 Minutes

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 473

  • @WishMasterCoder
    @WishMasterCoder 3 года назад +10

    Thank you Brad for all your tuts ... In 2021 I am using the latest version of rails. If anyone is stuck with rake routes (49.05) replace it with rails routes. Thank you so much (I can't believe this was made 5 years ago!)

  • @daryltang8903
    @daryltang8903 3 года назад +37

    If you could, please provide the github link to this project, thanks! Here's some timestamps.
    08:01 What is MVC
    10:43 Creating the first controller
    13:27 Creating first route
    15:58 Sending dynamic values from controller to view / filling up a template
    17:23 Defining a resource in routes / rake routes
    19:13 Adding functionality for creating new posts
    20:14 Using the form helper
    23:25 Creating the first model
    24:51 Running rake db:migrate to migrate the database
    25:55 Create private method for processing post params
    29:00 Showing all blog posts
    37:53 Adding error messages to forms
    40:31 Adding edit functionality
    44:00 Adding delete functionality
    46:13 CRUD app done, add comment functionality
    46:45 Create comment model
    48:12 Add routes for comments
    50:48 Build comments controller
    52:20 Show comments on page
    55:34 Creating a partial for comments
    57:40 Adding delete comment functionality
    58:55 Basic http authentication

  • @TheJackTheLion
    @TheJackTheLion 2 года назад

    Ive seen many people try and explain rails and they talk alot but don't expain what is going on in a concise way... You did an amazing job explaining the exact way Rails 'thinks'. Very well done sir.

  • @maheshnahak9510
    @maheshnahak9510 4 года назад +4

    I'm preparing for an internship interview, and it's in 3 days. Was familiar with Ruby, now with this 1 video I've become familiar with RoR fundamentals as well. Thanks, Brad! 😊

    • @emmanuelkip9522
      @emmanuelkip9522 Год назад

      How did the interview go? I know you posted two years ago, but I am now learning rails and I am really curious to know how it went!

    • @maheshnahak9510
      @maheshnahak9510 Год назад

      @@emmanuelkip9522 heyo, I ended up withdrawing my application from that internship lol. Some things didn't suit me soo

  • @annichan113
    @annichan113 4 года назад +4

    This was not a long video for an introduction to RoR, this is the perfect length for a quick introduction.👍❤️thank you

  • @naturetalk7071
    @naturetalk7071 7 лет назад +217

    Development starts around 8:06

  • @BabsCraig
    @BabsCraig 7 лет назад +10

    Thanks Brad. This is so helpful. Love how you apologize at around the 30 minute mark for the tutorial taking so long. Lol. Like we wouldn't be here for hours soaking up the knowledge. Your teaching style is awesome and the way you cover so much without making it end up confusing is amazing. Your NodeJS vids were really helpful and this one is no different. Thanks again

    • @TraversyMedia
      @TraversyMedia  7 лет назад +2

      Thanks very much :)

    • @hhhjjj4148
      @hhhjjj4148 7 лет назад

      Traversy Media pls tell do I have to learn html for this tutorial

  • @DemmersSito
    @DemmersSito 8 лет назад +16

    This is the place where I learned Ruby on Rails, Thanks Brad!

  • @LexiumHub
    @LexiumHub 3 года назад

    You are the best instructor so far, it's just like you know what am gonna ask and you simply talk about it

  • @RonaldTingchaleun
    @RonaldTingchaleun 5 лет назад

    You are the best resource I've ever found. This is by far the simplest and most understandable guide to getting started with Ruby. Thank you so much for sharing your knowledge.

  • @renzobeltran
    @renzobeltran 4 года назад

    What a great introduction, it was like the best tour introduction about a framework, in this case RoR, you dont know how grateful i am, greetings from Peru, im learning english at the same time with this channel, thank you so much for collaborate with my profesional development🤗

  • @seangillespie4601
    @seangillespie4601 4 года назад +1

    A rare combination of thorough yet concise. Thank you, extremely helpful!

  • @marioashok9811
    @marioashok9811 5 лет назад +19

    Thanks a ton Brad. It's useful even in 2019. This is the best tutorial to get started with Ruby on Rails.

    • @jovialiste
      @jovialiste 5 лет назад +1

      Same here. It am about to finish a 2 month bootcamp and it helped me understand some rails concepts. Thanks a million !

  • @amlife180
    @amlife180 8 лет назад +76

    Hi Brad, thanks for this tutorial, would love to see 1 hour API with Ruby on Rails with authentication :)

  • @bitsinmyblood
    @bitsinmyblood 7 лет назад +1

    I like the fact that you show your process including debugging. It's a really important part of these, imho.

  • @StevenCookFX
    @StevenCookFX 7 лет назад +1

    First off. I want to say that this is a great beginner tutorial. Good job. :) Now for one thing I found out about the posts new section the line in the posts_controller.rb in the Create function. There is a problem with the newer rails/ruby install where they do not use "plain" but rather "text" I was following along and found that it was changed and now the line should be "render text: params[:post].inspect" and it will work. This is just to help those like me trying to follow along and they get the missing template error.

  • @modolief
    @modolief 7 лет назад +7

    9:00 -- here's where we start looking at the code (prior minutes of the video are about installing Rails)

  • @FolaCodes
    @FolaCodes 4 года назад

    Thanks so much, Its 2020 and I still find this super useful. You covered most concepts and the best part is there is a project to show for it. Its a really great tutorial to get started with Ruby on Rails.

  • @vinodshand
    @vinodshand 7 лет назад +2

    Thanks for such a great "Hands On" tutorial. I created & learnt it along with this tutorial and I feel like have learnt a lot. Thanks again.

  • @AshwinDixit
    @AshwinDixit 7 лет назад

    Very clear explanations, and just the right pace. Once or twice, too much "readymade" text was pasted in at once, which was slightly confusing. Overall, the video was an excellent way to learn Rails! Loved the video! Thank you!

  • @fredii2025
    @fredii2025 7 лет назад

    So, I am really new to Rails (I am just learning a little bit to help a friend with a project) and I got everything I needed from this video. Thanks a lot

  • @MrBenTheBear
    @MrBenTheBear 7 лет назад

    This is by far the most useful tutorial I have seen thus far on ruby. Thank you for this.,

  • @adambsheldon
    @adambsheldon 7 лет назад

    Brad you’re a straight up legend, you always make things so easy to understand! Thank you as always!

  • @raedbettaieb9212
    @raedbettaieb9212 6 лет назад +2

    I learned so much from you over the past couple of years.
    Thank you so much Brad.

  • @oscarmartinezbeltran
    @oscarmartinezbeltran 8 лет назад +1

    Hi Brad,
    thank you for this tutorial. I really like it!!!
    You explain it very clear and concise and you dont waste time in unnecesary things.
    I am looking forward for more tutorials
    Cheers

  • @jakuboblizajek6468
    @jakuboblizajek6468 7 лет назад

    Very good introduction. Protip: There is a special gem bootstrap-sass that helps you to integrate bootstrap with sass. You just put a gem in the gemsfile, Insert @import 'bootstrap-sprockets' and @inport 'bootstrap' and off we go! I also recomend using Haml preprocessor.

  • @titechafrica8033
    @titechafrica8033 4 года назад

    Traversy, thanks very much for this beautiful work! I love you and I believe in you!

  • @gravics
    @gravics 7 лет назад

    This was great! Speaking for myself, I learn best when something is built rather than being introduced to the syntax and methods.

  • @dandi2864
    @dandi2864 6 лет назад +6

    How do you save to database if the content is not from a form @20:50, what if its from a javascript variable?

  • @TechNSayge
    @TechNSayge 7 лет назад

    Another solid tutorial. Thanks for building the community.

  • @androidbox6876
    @androidbox6876 2 года назад

    Dear Brad,
    Thank you a million times 😍.

  • @thetutorialdoctor
    @thetutorialdoctor 7 лет назад

    This tutorial helped me understand a Udemy course I was taking better. I also signed up for your course on edunix and I've subscribed. Thanks!

  • @Lonegame7
    @Lonegame7 2 года назад

    This is the first youtube tutorial that i follow, its been 5 years now

  • @许乐龙
    @许乐龙 8 лет назад

    Thank you! I think the errors happened in the process are valuable for your tutorial, and I learn much .

  • @phungdao4660
    @phungdao4660 3 года назад

    Ran into some issues following this on OSX (mostly missing dependencies when launching rails server) but after I got over that hill it was smooth sailing. Thank you!

    • @phungdao4660
      @phungdao4660 3 года назад

      Just a heads up for anyone running into issues w rake routes
      rake routes has been deprecated, use 'bin/rails routes' for same thing.

  • @benisantoso3859
    @benisantoso3859 4 года назад

    i easy to learn from You than another tutorial, since You not to rush when explain something, thanks

  • @igorgayvoronsky2857
    @igorgayvoronsky2857 7 лет назад

    Thanks Brad! Very clear and useful tutorial! It's one of the best video about Rails basic stuff!

  • @gracelyngesalta9988
    @gracelyngesalta9988 6 лет назад

    I really enjoy this Ruby Tutorial. I understand much of this. I hope there's a part 2 :) Looking forward to you. Salute Brad!

  • @sonia10647
    @sonia10647 7 лет назад

    Great tutorial. You simplified the things and presented very well. Thanks for video.

  • @mulderyu1
    @mulderyu1 7 лет назад

    thanks a lot, this video is really best and simple guide for mid-ranged other language users.

  • @AnkitYadav10
    @AnkitYadav10 6 лет назад +4

    Hi Brad, Thanks for this video. It was really helpful. I would also like to see your 1 hr REST API with Ruby on Rails.

  • @lardosian
    @lardosian 8 лет назад +76

    So many different tools and languages, i get so confused what to learn. How do you know them all??! Your teaching style is very good, great voice to listen to!

    • @every1pro
      @every1pro 7 лет назад +6

      look up spacing effect.

    • @renovatiovr
      @renovatiovr 6 лет назад +11

      lardosian Once you learn one you pretty much know the rest. Especially when dealing with php, python, ruby

    • @9393jack
      @9393jack 6 лет назад +1

      James "look up spacing effect" Pff. Do you even cram?

    • @MadalinIgnisca
      @MadalinIgnisca 6 лет назад +1

      Learn all. Software engineers are most searched by companies willing to invest and pay well people. Or learn something like Ruby on Rails, Django or Laravel and build your own little startup. You'll figure out alone what to do after ;)

    • @whatamievendoing
      @whatamievendoing 6 лет назад +2

      So, if you can build your own compilers and interpreters, you can pick up on new programming languages super easily. FYI, that is why 90% of CS degrees out there require a compilers or programming languages course

  • @sherinsamuel5171
    @sherinsamuel5171 6 лет назад

    Thanks for video. Has been really helpful. I have one point to add. When there are comments attached to a particular post, we cant delete the post. To solve this, add this to Post model : `has_many :comments, dependent: :destroy`. This will destroy the associated comments as well.

  • @georgiosmylonas3892
    @georgiosmylonas3892 4 года назад

    Thanks for doing this tutorial. Very straight forward.

  • @hidude1354
    @hidude1354 6 лет назад

    Hey everything is working great until 55:30 when the comment addition still works, just that after all the comments have shown it adds a [*all comment fields like body, title, time stamp, etc... *] and I don't know how to get rid of it. I looked at the source code of the page and it wasn't even in a div block, the brackets were just added as plain text.

  • @sirajussalekin9239
    @sirajussalekin9239 7 лет назад

    Great tutorial. Simple and Concise.

  • @osyopans
    @osyopans 4 года назад

    Thanks a lot man. This was an excellent overview on some of the core principles.

  • @soultouchingsongs
    @soultouchingsongs 5 лет назад

    Thanks a ton Brad. You made it so simple. Just awesome..

  • @ПетрГагарский
    @ПетрГагарский 5 лет назад

    problems on stage installing sqlite3, at creating simpleblog ~ 6 - 6:30. deleting "s" in https doesn't helps, what should being done to make all right

  • @hausenlot
    @hausenlot 2 года назад

    It really me helped understand the MVC structure or atleast how to make a crud in RoR without generating a scaffold.

  • @auklin7079
    @auklin7079 6 лет назад +2

    22:22 Why... why is is submitting to create? we never specified 'create' in the new.html.erb file. It just 'happens'... why.
    This makes no sense

    • @MoeFarms
      @MoeFarms 5 лет назад

      It's declared in the routes. Rails magic :D

  • @morganhunter7233
    @morganhunter7233 5 лет назад

    Thank you for explaining everything. I want to do a boot camp but I'm not going to shell out thousands without having a solid base first. Thank you.

  • @patrickbennett5129
    @patrickbennett5129 6 лет назад

    Great course. Clear and super helpful introduction to Rails. Thanks!

  • @mahanmashoof1989
    @mahanmashoof1989 4 года назад

    Thanks for making complicated thing understandable

  • @LetsNaiDa
    @LetsNaiDa 6 лет назад

    Maybe someone could help: 28:46
    If I click on "Save" I do not see anything anymore (I am getting a blank page) but the url is changing into /posts/*id++*
    Did it step by step and it seems to be the same code.

  • @davidhernandez1699
    @davidhernandez1699 7 лет назад

    Awesome tutorial, Brad! Very helpful! Keep it up!

  • @i_am_acai
    @i_am_acai 5 лет назад

    Why do you use posts_path at 44:49 but not 40:07?

  • @johnnjenga4169
    @johnnjenga4169 6 лет назад

    This one video has made me love ruby and rails. I think it is better than nodejs by far.

  • @adnanfurkan8216
    @adnanfurkan8216 3 года назад

    It was helpful for me. Thank you so much.

  • @ArmandoBN497
    @ArmandoBN497 4 года назад +1

    Hi Brad, thanks for all the hard work you put in these tutorials!! Was wondering if you would do a 2020 version of ruby/rails would greatly appreciate it.
    Again thanks for everything you do.

  • @hpjhgj77
    @hpjhgj77 4 года назад

    30:38 ERROR: undefined method `each' for nil:NilClass
    fixed by: in index.html.erb on line 2: instead of @posts.each --> @post.all.each

  • @preitytandukar6032
    @preitytandukar6032 6 лет назад +1

    @27:14 why does redirect_to @post loads show view? It doesn't makes sense?

    • @thihanlin
      @thihanlin 4 года назад

      In my case, new post is loading but not showing title and body.

  • @nikitamelnikov446
    @nikitamelnikov446 8 лет назад +7

    Hi Brad! I really enjoy your tutorials. Thanks for it. I want to say, that some of code channels adds link to final code on github or other repo. I think that can be useful for some your videos like this.

  • @andreadiotallevi5780
    @andreadiotallevi5780 5 лет назад

    You are a legend. Amazing video thanks!

  • @jpadams
    @jpadams 7 лет назад +4

    Pretty amazing tutorial. Thank you.

  • @chimpionboy
    @chimpionboy 6 лет назад

    Omg. That's so much Brad you are the best. Thank you so much. That was so awesome.

  • @tswtdt555
    @tswtdt555 6 лет назад

    At 10:09 I see the application.html.erb file. It's contents are different then mine. Instead of => true I have 'reload". If I don't change it I get an error saying the default code is wrong, if I change it I get a syntax error.

    • @tswtdt555
      @tswtdt555 6 лет назад

      Also my routes folder is empty

    • @tswtdt555
      @tswtdt555 6 лет назад

      If I delete the contents of the application.html.erb file I can get the page to load but it doesnt say 'Index'

    • @AquibA
      @AquibA 6 лет назад

      @@tswtdt555 I used LeoVentures (4months ago) suggestion and it seems to have worked. Also check out Kaan Ertugrul's thread (3months ago) Haven't tried that out yet, doe.

  • @roykorenblit7783
    @roykorenblit7783 8 лет назад

    awesome video, im new to ruby on rails and you really helped me understand the fundamentals. right on :3

  • @W大猫
    @W大猫 6 лет назад

    clear and useful, very nice for beginner, Thanks!

  • @pinch-of-salt
    @pinch-of-salt 8 лет назад

    Love your tutorial man! Great job, please keep making such detailed tutorials! I am SUBBED!! :))

  • @JohnWick-mk4ve
    @JohnWick-mk4ve 3 года назад

    Where did the code for forms come from @20:52?

  • @golfio13
    @golfio13 7 лет назад

    Excellent explanation, you got a new subscriber, you explain very well thanks ill see your others vids !!!

  • @usastereoguy3197
    @usastereoguy3197 4 года назад

    excellent video!!!! if you are getting errors when running your port 3000 on windows when there should not be any errors. (Usually index error). try running git command and run it as administrator for running your rails server. instead of git bash. that worked for me. for some reason git bash would always have a index error when displaying the web application on the port. also dont forget to use http for port and not use https. that one was a new one for me. i guess they changed that for websites. i am new to programming so I did not know about it. this is a excellent video!!!! great work! I am also taking a ruby on rails course from udemy. The information in this video is well done and is worth following along. I am struggling on understanding the relationship coding between all the posts. are there any videos explaining in depth the rails coding?

  • @MrCrossyTV
    @MrCrossyTV 8 лет назад

    Awesome tutorial Brad, I did something similar using ASP about 10years ago but really enjoyed working through this one with you.

  • @WhyAreWeAwake
    @WhyAreWeAwake 3 года назад

    Thanks for another excellent video! Doing this first really gave me a jump start before getting into the official Rails getting started guide. There might be a bug when you go to delete post that has comments. It looks like adding a little code to the Post controller fixes it `has_many :comments, dependent: :delete_all`.

  • @aneeshrai8304
    @aneeshrai8304 4 года назад

    sir, when I am installing it, is showing note.js file is missing 5:30

  • @1netakenilesh
    @1netakenilesh 6 лет назад

    Thanks very useful, learnt ROR in 60 minutes :)

  • @nikitamelnikov446
    @nikitamelnikov446 8 лет назад +9

    And i think would be good to say about a pluralization error, that causes urls with dots.

  • @teresaalapat5832
    @teresaalapat5832 3 года назад

    Thank you , this was super helpful

  • @nibinjohn1431
    @nibinjohn1431 7 лет назад

    Thanks for uploading this. Really helpful.

  • @elijaprice
    @elijaprice 7 лет назад

    Great tutorial, thanks Jon Favreau! (Loved the Ironman movies too).

  • @danbo967
    @danbo967 7 лет назад +1

    When you work with your form it is cleaner and preferred to not to use parenthesis :
    As you can see it is cleaner and does the same thing.
    Also you don't have to specify the url for a simple form like this, you can use the normal constructor:
    form_for @post do |f|
    # all your form fields
    end

  • @tacticalbelyash
    @tacticalbelyash 7 лет назад

    Hi Brad! Thanks for another awesome tutorial =)

  • @Max-bf9lm
    @Max-bf9lm 5 лет назад

    Thanks Brad, awesome video!

  • @josephamato7165
    @josephamato7165 7 лет назад

    Thanks Brad, this was a great tutorial!

  • @SANDEEPAGRAWAL003
    @SANDEEPAGRAWAL003 5 лет назад

    I think this tutorial is good for someone who already knows Ruby syntax and basics because those things are not covered in this tutorial. As it is a 60-minute video, was expecting those to be explained in short while writing the code.

  • @jayartey5298
    @jayartey5298 7 лет назад

    20:18 How did you create that form?

  • @nishizakiren7351
    @nishizakiren7351 6 лет назад

    I learned a lot this video. Thanks!

  • @sebastienbal4595
    @sebastienbal4595 6 лет назад

    Tanks for this video ;) I'm really starting to understand the language

  • @nvminhtue
    @nvminhtue 6 лет назад

    Thanks Brad, it's helped a lots

  • @centereddev
    @centereddev 7 лет назад

    at 40:00, how come you just passed in 'post' instead of '@post' like the other ones?

    • @ubvqnhdhht1318
      @ubvqnhdhht1318 6 лет назад

      Gray Smith post is a block local variable in that context, not a class variable

  • @mdsadiqurrahman9786
    @mdsadiqurrahman9786 7 лет назад +4

    thank you so much for your nice tutorial. I know js, php and sql but those language was very alienic to me. where to start ROR, any suggestion?

  • @rafaelgaia8677
    @rafaelgaia8677 2 года назад

    Great tuts. Thank you!

  • @keithdumont
    @keithdumont 4 года назад

    You're the Greates Brad !

  • @rino19ny
    @rino19ny 4 года назад +2

    i understand what he is trying to do but my big question is, where does he get all those what he typed? is there like a book of rails command somewhere? how does he know when to use certain command/s ?

    • @RyandyLaw
      @RyandyLaw 4 года назад

      yea if that could be provided it will become even more helpfull

  • @centereddev
    @centereddev 7 лет назад +2

    great refresher, thanks!

  • @pinch-of-salt
    @pinch-of-salt 8 лет назад

    Okay so I know JSP and a bit of servlet what would you recommend me to see first? Because I am loving your videos, I just don't get the order. I was wondering about nodeJS comparison that you made early in the video... everything else was understood like 80%

  • @Remixt
    @Remixt 8 лет назад +2

    I'm glad I found your channel. Really nice tutorials. I'm a Java/C++ developer trying to learn how to make visually stunning web apps. Could you recommend where I can find out how to integrate animations and art into a rails app? After I watch all your videos I want to keep learning until I'm an expert.

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj 7 лет назад +2

      if ur not good at drawing/designing in general, i recommend using semantic-ui instead of bootstrap (but it requires a bit javascript knowledge)
      for making visually stunning websites/apps.. you'd have to actually be a designer..
      nothing stunning about bootstrap ... for animations,3d , probably three.js?

  • @FlyLikeADragon
    @FlyLikeADragon 7 лет назад

    thanks for the tutorial - well made, helped a lot :)

  • @vvx_vv
    @vvx_vv 7 лет назад

    This was really useful, thank you!