This Ruby on Rails tutorial will help people new to the framework understand how it operates as well as the necessary conventions required to create a blog using Ruby on Rails. We touch on things such as routing, controllers, views, models, migrations, relations, and more.
📖 Read the full blog post here: https://web-crunch.com/lets-build-with-ruby-on-rails-blog-with-comments/
💻Code: https://github.com/justalever/demo_blog_rails
⭐️Tutorial Contents ⭐️
⌨️Intro (0:00)
⌨️Installation (1:07)
⌨️Starting the app (9:01)
⌨️Adding comments (1:11:46)
Tutorial by Andy Leverenz. Check out his YouTube channel: https://www.youtube.com/channel/UCzePijHDYnVHIXW6HYTL4dg
—
Learn to code for free and get a developer job: https://www.freecodecamp.com
Read hundreds of articles on programming: https://medium.freecodecamp.com
And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp
source
Part 2 plz
Thanks for this! I had fun following along and making it work with the skeleton framework rather than bulma.
I appreciate the video and following along is easy enough, but there are many things you don't actually explain why you do them which would help us understand why things on Rails work the way they do. Maybe go into a little more depth in future videos? Thanks!
Good tutorial!
do you have a link to tutorials, that you recommend, showing how to add user authentication?
thanks for the tutorial!
In the last minute, you show us your post.rb that has new code you never wrote in the tutorial: "dependent: :destroy"
Not sure how late this is but when it is just a routing error, better errors will not trigger. https://github.com/BetterErrors/better_errors/issues/220
Getting an error. Anyway I could reach you for help?
Thanks for your video. Very nice work! How do you get your dock to pop up like that?
when a spreecommerce tutorial?
Why 720p…
Sincerely, one of the best resources for introduction to Ruby on Rails. Thank you for your efforts, waiting for the other tutorials about Rails and usage of popular gems.
聞き取りやすい英語でした
For those who has a problem with Navbar
<%= link_to("Blog", root_path, :class =>"navbar-item") %>
That worked for me
really great tutorial, easy to catch up and very useful for first timer like me.
Great tutorial ! I was trying to understand how rails work and you clarified it very well with the gems installation.
I really would like to know how you set up to show the directory on the top of the window
Very good tutorial! Thanks I appreciate the help! Subscribed and liked.
Hi Congrats on this great tutorial. Thanks . many of us are benefited.
Do you read bed time stories?
Came for the tutorial, subscribed for the voice! ;D
Too bad at some point you started copy-pasting code.
I thought "Oh I understand Django. I should learn Ruby on Rails. A lot of knowledge will transfer!"
I was very wrong. This looks like ancient Greek to me.
Which extention you use for HTML(Rails) language Mode?
Awesome resource! Thanks so much!
where can I fine next course ? About login and simple security
Real development of the Blog Page with CRUD operations starts at 29:00
Thanks for content, therefore it needs more explanations about how rails work.
Hey , Jarvis
Can you teach these kids Ruby ?
Nice to see someone do a beginner tutorial and pay attention to styling.
Very bad tutorial. You don't just write the code without explaining. garbage
bad tutorial. the guy is winging it. couldnt get past the installation step
1:12:25 naming your commits is the hardest part?😂😂
"updation" at 41:50 made me lol. Thank you for the video!
I have a problem with the destroy… Im not able to delete the post. Anyone has this problem?
Rad. Excited to learn more about Bulma too. Thanks for the video!
Love what you do, I also try to explain complex ideas in beginner language on my channel, I would appreciate your support https://www.youtube.com/channel/UC6N4i972Z7F-ozmUWDakS1Q
Suppose in the controller action called new and create, if i put some other name, is that a problem??
Your voice is amazing! Many thanks
This was very helpful. Thank you very much!
If anyone else is getting an error with the delete confirmation message steps, this worked for me:
<p class="level-item">
<%= button_to "Delete", post_path(@post), method: :delete, form: {data: {turbo_confirm: 'Are you sure?'}}, class: "button is-danger" %>
</p>
I copied over the relevant parts for the comment delete button as well.
If anyone can't get the DESTROY methods to work…try
<%= button_to "Delete", post_path(@post), form: { data: { turbo_confirm: "are you sure?" } }, method: :delete, class: "button is-danger" %>
and
<%= button_to 'Delete', [comment.post, comment], method: :delete, class: "button is-danger", form: { data: { turbo_confirm: "Are you sure?" } } %>