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!
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.
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!
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.
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!
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?
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 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.
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.
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!
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!
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!
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?
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?
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.
@@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?
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
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
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.
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... :(
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
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
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!
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.
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.
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!
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 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
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
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!
I think short videos are better 15-30min
hi sir what can I do with my error , it says couldn't find Post with 'id'=
Hard to say without seeing your code. If you host it somewhere I can take a look 👍🏼
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.
longer and thorough is better!
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!
Awesome! Thanks for watching 🤘
This channel has a lot of like the best bootcamps ever for ROR beginners ❤
Tell your friends! 😁
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.
Thanks a lot for following along. Hit me up if you need help!
Great help for people starting to learn Rails. Highly recommended.
What a perfect, short, in-depth tutorial. Thanks so much for this tutorial!
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!
Thanks for watching. There are a bunch more on my channel. Check them out too!
Love the way you teach...
Thanks buddy awesome tutorial
This was the best web class I've ever seen. Congratulations.
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?
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.
That sets the default main url of the app. So localhost:3000 will load the index action on the posts controller by default
thank you for tutorial I'm beginner this tuto is my first step to RoR :)
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.
Thank god i came across your Channel.
A detailed and even better tutorial on Airbnb would be great.
Hey Andy. Thanks a lot for this tutorial - it was easy to follow and well explained - appreciate it.
Thanks so much for following along 😊
Great video tutorial. Please do a similar tutorial on Airbnb.
Thanks for the tutorial!
How to prevent Sublime from requests for register?
Pay for it? :)
@@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.
Oh yeah, at that time I had a paid license from a previous employer.
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.
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.
Thanks a lots! I learned easily by your video😎💯🔥............🤝
Thank you so much
absolutely amazing tutorial !!!!!! thanks very much
amazing videos and website! so much help, thank you for being you :)
Thanks for turning in! Glad to be of help
You fantastic beast you. Thanks for the tutorial.
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!
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!
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!
Great Video
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?
All fixed. I forgot to reference the post_params to my Create method
That one gets me all the time
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?
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.
@@Webcrunch i see. Thank you for answering!
@@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?
bulma.io/ should get you what you're after
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
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..."
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
Why does work? I assumed it would have to be
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.
@@Webcrunch i honestly didnt expect a reply but this is superb. I will look into your course
@@MakeRandomVids Thanks for that. Here's a code for 10% off if you decide you want to give it a shot :)
"H3LL0RA1LZ19"
Why don't you use haml?
Just really never got into it.
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... :(
Anything in your app/assets/stylesheets folder will be included, so just create your stylesheets there.
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
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
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!
ıs thıs stıll relevant ıf ı want to do these lessons
It's a bit dated but the core concepts are the same so I'd say it's relevant.
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.
I've heard this from quite a few folks. Future videos are a bit more tame. Sorry about that!
You could just type exit to exit from bundle exec guard, you maybe know or not --'
do i need to type in
for bulma to work?
seems like a silly question, just not sure
Not that I'm aware... Those are simply HTML comments
Which theme and packages have you use…kindly comment
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.
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!
Cool! Thanks dude
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.
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?
@@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
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
Try using 'bundle exec guard init livereload'
Привет всем, кто от Дударя пришел смотреть удаление комментариев
sdf
rails makes no sense compared to django
why is that
That's funny. It's exactly the opposite. Python is not even web's main purpose, first off. Unlike Ruby/Rails.