Ruby on Rails Tutorial 2

[ad_1]
Get the Code Here :

In this video I develop a Rails blog app, while covering numerous topics. This tutorial was crafted to answer all the questions I have received since I made my original Rails video tutorial.

Here I’ll cover the scaffold generator, building a MVC without scaffold, setting up the database, model, views, controller, partials, REST, CRUD, routes, before_action, validates, belongs_to, has_many, foreign keys, fixing errors, styling with SASS and more.


Posted

in

by

Tags:

Comments

31 responses to “Ruby on Rails Tutorial 2”

  1. Stefan Avatar

    Nice videos, Derek. Thank you.

  2. Pedro Olavarria Avatar

    Best tutorials in Rails!. Thanks, Dereck!

  3. Abhishek Sharma Avatar

    Great video Derek, learning a lot with your tutorials…

  4. 9206370 Avatar

    make more videos please

  5. Everett Vincent Avatar

    Thank you for making this tutorial. It is excellent!

  6. 1eddy87 Avatar

    Hey Derek, would you be able to make a tutorial on Rails API?

  7. 1eddy87 Avatar

    Awesome tutorials 🙂

  8. qingshu Song Avatar

    NICE!
    I like more Rails Tutorial。。。。

  9. Gabe Payne Avatar

    I now have this error:
    undefined method `comments' for #<Article:0x5585d90>
    Did you mean? committed!'
    And it shows the code at the show.html.erb file:
    <h2>Comments</h2>
    <% @article.comments.each do |comment| %>
    <p>
    <strong>Commenter:</strong>
    <%= comment.commenter %>

  10. Gabe Payne Avatar

    Do you know why I would try to access the users page and get a MissingHelperError in UsersController#index?

  11. Collin Bowman Avatar

    This is such an awesome tutorial. Thank you for taking the time to make all of these

  12. Pvt Jaime Avatar

    After following the tutorial after 10:18, my Rails just hangs afterwords. Nothing happens when i go back to localhost:3000. Only a ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` appears and nothing else.

    Using Ruby 2.3.3p222 and Rails 5.0.1

  13. Sam Honarvar Avatar

    Most of your videos are great, but since you move quick, you miss a lot of information and sometimes completely ignore explaining what you're typing. For instance, you completely ignored what "Article" was at 24:35. But in general, great series. Thank you!

  14. Gaboo Avatar

    how do I make separate articles on separate static pages

  15. Ricardo Gomez Avatar

    Great tutorial, do you have a video that shows how to use bootstrap with rails?

  16. NickyP Avatar

    Thank you for the great tutorials, just a question, what if I don't want to use SASS as my CSS preprocessor? I am using stylus instead, is it possible to use that in Rails and how to do it?

  17. jayant soni Avatar

    This is a Good Example

  18. Laiali Safa Avatar

    i loved it, thank you so much

  19. George Mbatia Avatar

    awesome Derek! Thanks a mil

  20. akhyl chhetri Avatar

    I have learned so much from your videos ..and i'm in search of tutorial for linux kernel programming ..so i request you to create tutorial for that….i would be very thankful to you.

  21. sebastiano dimartina Avatar

    best video about rails basic usage i have never seen.

  22. Amin Mansour Avatar

    You paste over a lot of things with explaining it and just instead give a simple narration of what you are typing in, and you do not make clear what is a predefined method and what is defined by you when referencing it somewhere. The order which you do stuff at best is questionable. You shouldn't teach beginners scaffolds without them grasping the concept and structure of a model and how it interacts with the view and controller. Its free so i do appreciate the effort though but i recommend people to visit another tutorial and revisit this after, because there is some key concepts shown .

  23. TheTrashBringeer Avatar

    Hello Derek,

    Thank you for making this video. I am having trouble with the section around 11:30. When you ask to load localhost:3000/users/ I am receiving a "TypeError: Object doesn't support this property or method." I am running windows. Does anyone have any idea why I would be receiving this error?

  24. Thomas Nix Avatar

    What a wonderful video series for explaining and demonstrating Rails and MVC as a concept. I interned using ASP.NET MVC without prior practice and it was hectic to say the least. Now I am taking a class requiring Ruby and some Rails, and this will definitely be a go-to resource throughout the semester.

  25. Andrzej Wójtowicz Avatar

    4:30
    In Article model shouldn't 'userid' be 'user_id' just like in Comments model there is 'article_id'. Can someone clarify if this is intentional or a typo?

  26. Christopher Thomas Avatar

    Took me a while to set everything up properly since I'm new to Rails and MySQL. But thanks to you, I've finally got the hang of it. Great tutorial!

  27. Douglas Zickuhr Avatar

    Hey Derek, thanks a lot for this amazing tutorial. Actually I need your help in one point. When I'm trying to create a new article, rails alsways told me that the User must exists, even when I type a valid UserID. There's some point for me to pay more attention beyond the "has_many and belongs_to" part on the models of article and user? Thanks again!!

  28. Aman Mathur Avatar

    I followed the same procedure but the article page is showing no SASS formatting.!!
    What should i do..please help?!?

  29. Harry Rigg Avatar

    Could of we used keys (references) for linking users to articles as well as linking comments to articles?

  30. Tayatashi Avatar

    Great videos but I have a question.
    You said that later you would talk about getting user_id automatically and i could not find it. If i would like to add logged user id when creating article or comment how should I make it?

  31. Jonas Erik Barreto Avatar

    Great video.
    The only problem is the "ultra zoom". Sometimes, look the whole block of code is better.

Leave a Reply

Your email address will not be published. Required fields are marked *