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!)
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
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.
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! 😊
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
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.
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🤗
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.
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.
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!
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
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
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.
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!
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!
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 ;)
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
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.
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.
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.
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.
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.
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 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.
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?
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`.
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
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.
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 ?
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%
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.
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?
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!)
thanks!
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
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.
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! 😊
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!
@@emmanuelkip9522 heyo, I ended up withdrawing my application from that internship lol. Some things didn't suit me soo
This was not a long video for an introduction to RoR, this is the perfect length for a quick introduction.👍❤️thank you
Development starts around 8:06
fucking bless you
Gahzuntiet
thanks for saving our time
Almost gave up before seeing your comment. Spends more time trying to get Git to work than talking about RoR
Thank you kind person.
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
Thanks very much :)
Traversy Media pls tell do I have to learn html for this tutorial
This is the place where I learned Ruby on Rails, Thanks Brad!
You are the best instructor so far, it's just like you know what am gonna ask and you simply talk about it
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.
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🤗
A rare combination of thorough yet concise. Thank you, extremely helpful!
Thanks a ton Brad. It's useful even in 2019. This is the best tutorial to get started with Ruby on Rails.
Same here. It am about to finish a 2 month bootcamp and it helped me understand some rails concepts. Thanks a million !
Hi Brad, thanks for this tutorial, would love to see 1 hour API with Ruby on Rails with authentication :)
I like the fact that you show your process including debugging. It's a really important part of these, imho.
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.
9:00 -- here's where we start looking at the code (prior minutes of the video are about installing Rails)
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.
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.
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!
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
This is by far the most useful tutorial I have seen thus far on ruby. Thank you for this.,
Brad you’re a straight up legend, you always make things so easy to understand! Thank you as always!
I learned so much from you over the past couple of years.
Thank you so much Brad.
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
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.
Traversy, thanks very much for this beautiful work! I love you and I believe in you!
This was great! Speaking for myself, I learn best when something is built rather than being introduced to the syntax and methods.
How do you save to database if the content is not from a form @20:50, what if its from a javascript variable?
Another solid tutorial. Thanks for building the community.
Dear Brad,
Thank you a million times 😍.
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!
This is the first youtube tutorial that i follow, its been 5 years now
Thank you! I think the errors happened in the process are valuable for your tutorial, and I learn much .
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!
Just a heads up for anyone running into issues w rake routes
rake routes has been deprecated, use 'bin/rails routes' for same thing.
i easy to learn from You than another tutorial, since You not to rush when explain something, thanks
Thanks Brad! Very clear and useful tutorial! It's one of the best video about Rails basic stuff!
I really enjoy this Ruby Tutorial. I understand much of this. I hope there's a part 2 :) Looking forward to you. Salute Brad!
Great tutorial. You simplified the things and presented very well. Thanks for video.
thanks a lot, this video is really best and simple guide for mid-ranged other language users.
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.
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!
look up spacing effect.
lardosian Once you learn one you pretty much know the rest. Especially when dealing with php, python, ruby
James "look up spacing effect" Pff. Do you even cram?
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 ;)
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
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.
Thanks for doing this tutorial. Very straight forward.
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.
Great tutorial. Simple and Concise.
Thanks a lot man. This was an excellent overview on some of the core principles.
Thanks a ton Brad. You made it so simple. Just awesome..
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
It really me helped understand the MVC structure or atleast how to make a crud in RoR without generating a scaffold.
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
It's declared in the routes. Rails magic :D
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.
Great course. Clear and super helpful introduction to Rails. Thanks!
Thanks for making complicated thing understandable
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.
Awesome tutorial, Brad! Very helpful! Keep it up!
Why do you use posts_path at 44:49 but not 40:07?
This one video has made me love ruby and rails. I think it is better than nodejs by far.
It was helpful for me. Thank you so much.
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.
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
@27:14 why does redirect_to @post loads show view? It doesn't makes sense?
In my case, new post is loading but not showing title and body.
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.
You are a legend. Amazing video thanks!
Pretty amazing tutorial. Thank you.
Omg. That's so much Brad you are the best. Thank you so much. That was so awesome.
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.
Also my routes folder is empty
If I delete the contents of the application.html.erb file I can get the page to load but it doesnt say 'Index'
@@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.
awesome video, im new to ruby on rails and you really helped me understand the fundamentals. right on :3
clear and useful, very nice for beginner, Thanks!
Love your tutorial man! Great job, please keep making such detailed tutorials! I am SUBBED!! :))
Where did the code for forms come from @20:52?
Excellent explanation, you got a new subscriber, you explain very well thanks ill see your others vids !!!
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?
Awesome tutorial Brad, I did something similar using ASP about 10years ago but really enjoyed working through this one with you.
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`.
sir, when I am installing it, is showing note.js file is missing 5:30
Thanks very useful, learnt ROR in 60 minutes :)
And i think would be good to say about a pluralization error, that causes urls with dots.
Thank you , this was super helpful
Thanks for uploading this. Really helpful.
Great tutorial, thanks Jon Favreau! (Loved the Ironman movies too).
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
Hi Brad! Thanks for another awesome tutorial =)
Thanks Brad, awesome video!
Thanks Brad, this was a great tutorial!
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.
20:18 How did you create that form?
I learned a lot this video. Thanks!
Tanks for this video ;) I'm really starting to understand the language
Thanks Brad, it's helped a lots
at 40:00, how come you just passed in 'post' instead of '@post' like the other ones?
Gray Smith post is a block local variable in that context, not a class variable
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?
Great tuts. Thank you!
You're the Greates Brad !
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 ?
yea if that could be provided it will become even more helpfull
great refresher, thanks!
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%
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.
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?
thanks for the tutorial - well made, helped a lot :)
This was really useful, thank you!