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!)
@RR-et6zp2 жыл бұрын
thanks!
@jackiejackie117 жыл бұрын
This is such a great intro to ROR! Even though this is a year old, I learned so much! I feel like I have a very good understanding of how to build a crud app with ROR, pick up on syntax and navigate the file structure. So great that you fit this all into an hour!
@annichan1134 жыл бұрын
This was not a long video for an introduction to RoR, this is the perfect length for a quick introduction.👍❤️thank you
@daryltang89033 жыл бұрын
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
@TheJackTheLion2 жыл бұрын
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.
@maheshnahak95104 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@emmanuelkip9522 heyo, I ended up withdrawing my application from that internship lol. Some things didn't suit me soo
@DemmersSito8 жыл бұрын
This is the place where I learned Ruby on Rails, Thanks Brad!
@LexiumHub3 жыл бұрын
You are the best instructor so far, it's just like you know what am gonna ask and you simply talk about it
@seangillespie46014 жыл бұрын
A rare combination of thorough yet concise. Thank you, extremely helpful!
@naturetalk70717 жыл бұрын
Development starts around 8:06
@jamothy5 жыл бұрын
fucking bless you
@maxmaxmaxmaxmaxmaxmaxmaxmax15 жыл бұрын
Gahzuntiet
@wassaufkhalid85935 жыл бұрын
thanks for saving our time
@jasonbanahan46185 жыл бұрын
Almost gave up before seeing your comment. Spends more time trying to get Git to work than talking about RoR
@lalaithan5 жыл бұрын
Thank you kind person.
@RonaldTingchaleun5 жыл бұрын
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.
@marioashok98115 жыл бұрын
Thanks a ton Brad. It's useful even in 2019. This is the best tutorial to get started with Ruby on Rails.
@qcmira20245 жыл бұрын
Same here. It am about to finish a 2 month bootcamp and it helped me understand some rails concepts. Thanks a million !
@BabsCraig7 жыл бұрын
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
@TraversyMedia7 жыл бұрын
Thanks very much :)
@hhhjjj41487 жыл бұрын
Traversy Media pls tell do I have to learn html for this tutorial
@renzobeltran4 жыл бұрын
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🤗
@bitsinmyblood7 жыл бұрын
I like the fact that you show your process including debugging. It's a really important part of these, imho.
@StevenCookFX7 жыл бұрын
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.
@amlife1808 жыл бұрын
Hi Brad, thanks for this tutorial, would love to see 1 hour API with Ruby on Rails with authentication :)
@vinodshand7 жыл бұрын
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.
@FolaCodes4 жыл бұрын
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.
@AshwinDixit7 жыл бұрын
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!
@fredii20257 жыл бұрын
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
@MrBenTheBear7 жыл бұрын
This is by far the most useful tutorial I have seen thus far on ruby. Thank you for this.,
@modolief7 жыл бұрын
9:00 -- here's where we start looking at the code (prior minutes of the video are about installing Rails)
@adambsheldon7 жыл бұрын
Brad you’re a straight up legend, you always make things so easy to understand! Thank you as always!
@raedbettaieb92126 жыл бұрын
I learned so much from you over the past couple of years. Thank you so much Brad.
@jakuboblizajek64687 жыл бұрын
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.
@gravics7 жыл бұрын
This was great! Speaking for myself, I learn best when something is built rather than being introduced to the syntax and methods.
@williammoore69767 жыл бұрын
Hey guy! I like your grounded, knowledgeable, and personable teaching style. Hugh D. Mann.
@Lonegame72 жыл бұрын
This is the first youtube tutorial that i follow, its been 5 years now
@titechafrica80334 жыл бұрын
Traversy, thanks very much for this beautiful work! I love you and I believe in you!
@oscarmartinezbeltran8 жыл бұрын
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
@TechNSayge7 жыл бұрын
Another solid tutorial. Thanks for building the community.
@许乐龙7 жыл бұрын
Thank you! I think the errors happened in the process are valuable for your tutorial, and I learn much .
@androidbox68762 жыл бұрын
Dear Brad, Thank you a million times 😍.
@AnkitYadav106 жыл бұрын
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.
@phungdao46603 жыл бұрын
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!
@phungdao46603 жыл бұрын
Just a heads up for anyone running into issues w rake routes rake routes has been deprecated, use 'bin/rails routes' for same thing.
@sonia106477 жыл бұрын
Great tutorial. You simplified the things and presented very well. Thanks for video.
@dandi28646 жыл бұрын
How do you save to database if the content is not from a form @20:50, what if its from a javascript variable?
@igorgayvoronsky28577 жыл бұрын
Thanks Brad! Very clear and useful tutorial! It's one of the best video about Rails basic stuff!
@mulderyu17 жыл бұрын
thanks a lot, this video is really best and simple guide for mid-ranged other language users.
@gracelyngesalta99886 жыл бұрын
I really enjoy this Ruby Tutorial. I understand much of this. I hope there's a part 2 :) Looking forward to you. Salute Brad!
@lardosian8 жыл бұрын
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!
@every1pro7 жыл бұрын
look up spacing effect.
@renovatiovr6 жыл бұрын
lardosian Once you learn one you pretty much know the rest. Especially when dealing with php, python, ruby
@9393jack6 жыл бұрын
James "look up spacing effect" Pff. Do you even cram?
@MadalinIgnisca6 жыл бұрын
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 ;)
@whatamievendoing6 жыл бұрын
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
@thetutorialdoctor7 жыл бұрын
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!
@georgiosmylonas38924 жыл бұрын
Thanks for doing this tutorial. Very straight forward.
@sherinsamuel51716 жыл бұрын
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.
@benisantoso38594 жыл бұрын
i easy to learn from You than another tutorial, since You not to rush when explain something, thanks
@ArmandoBN4974 жыл бұрын
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.
@sirajussalekin92397 жыл бұрын
Great tutorial. Simple and Concise.
@osyopans4 жыл бұрын
Thanks a lot man. This was an excellent overview on some of the core principles.
@morganhunter72335 жыл бұрын
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.
@nikitamelnikov4468 жыл бұрын
And i think would be good to say about a pluralization error, that causes urls with dots.
@koitaki4 жыл бұрын
Wow, Ruby & Rails installation is a one hell of a mess on Windows.
@Auzep4 жыл бұрын
Don't worry, give it a few years and a new technology will replace it.
@nsaccente4 жыл бұрын
Everything is a mess on Windows.
@MatthewStidham4 жыл бұрын
It's not even that great in Linux either.
@benevans13774 жыл бұрын
yeah rails installer gives me outdated ruby & rails versions, don't know what the deal is there... I've found downloading the recommended version of ruby on the official website and just doing gem install rails installs the latest version of rails
@sseccoondd014 жыл бұрын
i feel you bro i spent most of my day installing it, finally it worked
@WhyAreWeAwake3 жыл бұрын
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`.
@mahanmashoof19894 жыл бұрын
Thanks for making complicated thing understandable
@danbo9676 жыл бұрын
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
@SANDEEPAGRAWAL0034 жыл бұрын
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.
@MrCrossyTV8 жыл бұрын
Awesome tutorial Brad, I did something similar using ASP about 10years ago but really enjoyed working through this one with you.
@patrickbennett51296 жыл бұрын
Great course. Clear and super helpful introduction to Rails. Thanks!
@soultouchingsongs4 жыл бұрын
Thanks a ton Brad. You made it so simple. Just awesome..
@hpjhgj774 жыл бұрын
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
@hidude13546 жыл бұрын
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.
@hausenlot2 жыл бұрын
It really me helped understand the MVC structure or atleast how to make a crud in RoR without generating a scaffold.
@johnnjenga41696 жыл бұрын
This one video has made me love ruby and rails. I think it is better than nodejs by far.
@auklin70796 жыл бұрын
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
@MoeFarms5 жыл бұрын
It's declared in the routes. Rails magic :D
@i_am_acai5 жыл бұрын
Why do you use posts_path at 44:49 but not 40:07?
@davidhernandez16997 жыл бұрын
Awesome tutorial, Brad! Very helpful! Keep it up!
@ПетрГагарский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
@humanonearth15 жыл бұрын
Followed along as far as I could, but the navbar from bootstrap didn't look right at all now. And I got errors as follows when creating posts: undefined method `title' for nil:NilClass. Had nothing to do with the private declaration in the controller as suggested on stack exchange.
@pinch-of-salt7 жыл бұрын
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%
@adnanfurkan82163 жыл бұрын
It was helpful for me. Thank you so much.
@preitytandukar60325 жыл бұрын
@27:14 why does redirect_to @post loads show view? It doesn't makes sense?
@thihanlin4 жыл бұрын
In my case, new post is loading but not showing title and body.
@andreadiotallevi57805 жыл бұрын
You are a legend. Amazing video thanks!
@jpadams7 жыл бұрын
Pretty amazing tutorial. Thank you.
@1netakenilesh6 жыл бұрын
Thanks very useful, learnt ROR in 60 minutes :)
@chimpionboy6 жыл бұрын
Omg. That's so much Brad you are the best. Thank you so much. That was so awesome.
@lotsoffun49394 жыл бұрын
why do you use :delete in the .erb, but :destroy in the .rb?
@JohnWick-mk4ve3 жыл бұрын
Where did the code for forms come from @20:52?
@mdsadiqurrahman97867 жыл бұрын
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?
@usastereoguy31974 жыл бұрын
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?
@rino19ny4 жыл бұрын
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 ?
@RyandyLaw4 жыл бұрын
yea if that could be provided it will become even more helpfull
@W大猫6 жыл бұрын
clear and useful, very nice for beginner, Thanks!
@nikitamelnikov4468 жыл бұрын
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.
@Remixt8 жыл бұрын
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-jb3kj7 жыл бұрын
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?
@keithdumont4 жыл бұрын
You're the Greates Brad !
@roykorenblit77838 жыл бұрын
awesome video, im new to ruby on rails and you really helped me understand the fundamentals. right on :3
@LetsNaiDa6 жыл бұрын
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.
@david-tracy5 жыл бұрын
in the beginning of video u decided to rmove the s from https at the top of the gemfile to fix the ssl certf. issue..... what are the ramifications a developer should know of doing this?
@sebastienbal45956 жыл бұрын
Tanks for this video ;) I'm really starting to understand the language
@teresaalapat58323 жыл бұрын
Thank you , this was super helpful
@jakublemiszewskiWebDeveloper7 жыл бұрын
Hello, great video! I have a question regarding the part of the comments. I changed like to :post_id and I'm having still same error 'Couldn't find Post without an ID' Could you please tell me in your opinion where I need to look for this error? Thanks :)
@januclips6 жыл бұрын
I face the following problem.. In general bootstrap works fine for html code. But on ruby code line it does not work. Like say The bootstrap navbar features does not reflect on the Create Post link. How to resolve this problem?
@cyrillkovtun95255 жыл бұрын
In the new Bootstrap the "navbar-right" becomes the "mr-right" . I've used bootstrap documentation to create this: SimpleBlog works fine
@KorayDurudogan4 жыл бұрын
I have 5 years of programming experience and working in one of the world's biggest bank's internet banking app and still can't manage to setup rails on my local. Always having stupid different errors and tired of it. RubyOnRails is really the most fucked up web framework ever
@golfio137 жыл бұрын
Excellent explanation, you got a new subscriber, you explain very well thanks ill see your others vids !!!
@yonatanlandau76117 жыл бұрын
First of, great tutorial but after I wrote word by word on the destroy method and how to delete the posts, the Browser alert does not pop up and I cant delete the posts... help?
@zanarkandmusic7 жыл бұрын
Ever find your answer? I've got the same issue
@samsonjusticio27437 жыл бұрын
Me too
@tywonek6 жыл бұрын
You should change models/posts_rb file from "has_many :comments" to "has_many :comments, :dependent => :delete_all" Good luck :)
@jayartey52986 жыл бұрын
20:18 How did you create that form?
@pinch-of-salt7 жыл бұрын
Love your tutorial man! Great job, please keep making such detailed tutorials! I am SUBBED!! :))
@nibinjohn14317 жыл бұрын
Thanks for uploading this. Really helpful.
@aneeshrai83044 жыл бұрын
sir, when I am installing it, is showing note.js file is missing 5:30