Ruby on Rails Tutorial

[ad_1]
Get the Transcript Here :

Ruby Tutorial :

Support me on Patreon :

The Best Rails Book :

For quite some time I have been using Rails and NodeJS for all of my web and Android development so I decided to make a Ruby on Rails video tutorial. I will cover a lot in this tutorial.

We’ll cover installation, MVC, setting up MySQL, the file system, creating controllers and views, embedded Ruby, Routes, communication between the controller and views, migrations and more.


Posted

in

by

Tags:

Comments

21 responses to “Ruby on Rails Tutorial”

  1. Naga Krushna Y Avatar

    Nice Tutorial,
    Can you make a video on Jetbrains RubyMine IDE, with debugging ?

  2. ledzeppeman Avatar

    Hey Derek,
    Awesome video, as usual. I have a very specific question if you'd be willing to oblige me. I already looked on stack overflow and couldn't find a clear answer.

    @ about 16:20, you finish telling us about passing a message from the controller to the sample page. I had no issue when I did it following along with you. But I like to pause and tinker with things to try and make sure I understand how they work. I made a new page in the "welcome" folder. It's basically a clone of the "sample" page. HOWEVER, when I load the sample clone page, I don't get the message from the controller. I even copied and pasted

    <%= "#{@controller_message}" %>

    from my original sample page. It's blowing my mind why my sample clone wouldn't receive the message from the controller, but the original sample page does get it. I've restarted the server and carefully combed through everything. I've moved on from this and continued to work through the video, but I would really like to understand why it wouldn't show up on the other page.

    Does it have something to with the "controller_message" variable being an instance variable? Can they only be used once or what? You have no idea how much I want to wrap my mind around this. Please offer some brief explanation if you understand this; I would be eternally grateful.

    If you're kind enough to answer, please be aware that I'm not great with ruby.
    Thank you so much for your time,
    Terry

  3. Ben C Avatar

    I know you probably get a thousand compliments a day, but I just wanted to share some appreciation. Your videos are always incredibly informative and engaging. I learn things I never thought I was interested in, just because you chose them as the subject of a video.

    Thanks for all the effort and keep up the great work.

  4. Recep Tayyip Erdoğan Avatar

    When i Try to download ruby at 80% its stops the download is broken

  5. Sahil Rally Avatar

    Is this tutorial still valid for Rails 5 ? Which Rails version it covers ?

  6. Nathan S. Targina Avatar

    Hi Derek! First, thanks a lot for the tutorial! Your videos are amazing! Well, I became stuck at the "controller welcome index" phase… I tried the suggestions users give on the other comments here, like changing the application.html.erb file with the 'default' tags, but nothing… also, I tried downgrade my rails and ruby, but "rvm" command is no more accepted, and nothing works either… 🙁 … I'm using ruby 2.3.3p222 and Rails 5.1.2. Please, Windows7 x64, help me… [If mister Derek won't answer, can someone help me please??]

  7. fundifferent1 Avatar

    <RANT>
    I can say that this video was a quite helpful in understanding the basics of Ruby, but extremely disappointing and frustrating.

    Basically it feels misleading. I did this turorial because it was a 30 minute video, but it's been 5 hours and I'm not even halfway done with the video between taking notes and doing this on my own. As soon as he got to creating the first index controller, that's where it all went to ssdhfts. Why he did what he did and what everything meant there and how it resulted in an index page was just missing. And it went downhill from there calling instance variables from controllers without explaining why or the syntax, linking between pages, because why? and without explaining the syntax fully..I had to just walk away!

    Basically, too many people on youtube trying to get clicks by making it seem like you can learn all this stuff in 30 minutes or less when YOU CANT. It tricks you into clicking but he goes so fast, doesn't explain certain things and leaves out so many details that it's just extremely frustrating. If you've never dealt with rails before this will essentially require, pausing, rewinding and your own supplemental research to fill in the blanks which will quadruple the tutorial time.

    Most people are not just sitting here watching the video like a darm movie. They are either trying to follow along with their own projects or taking notes. Either way the video is TERRIBLE for either of those things. You can't follow along because it will take hours and you won't really know what you're doing or why and you can't take notes because too many details and explanations are glossed over!

    I would recommend this video but only with the warning that it will take a LONG time to finish it, and to work in batches. Some guy has outlined the sections of the video so work in a couple sections per sitting. You will NOT finish this in one sitting and feel like you have a good grasp of Rails!
    </Rant>

  8. Caio Ramos Avatar

    Best rails video on youtube.

  9. satishakumar awati Avatar

    Very good video for revising basic rails CRUD and database configuration in short time. For beginners who don't have any idea of rails , its very hard for grasping all things explained.

  10. Patrick Foley Avatar

    At around 20.00 you log into mysql using: mysql -u root -p. when I try this I just get Command not found. Any suggestions?

  11. vandit6354 Avatar

    I got up to 16:22, instead of the expected result, I got this (and literally no idea!):

    WelcomeController#sample is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: [] NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.

    Extracted source (around line #53):

    "That's what you'll get from an XHR or API request. Give it a shot."

    raise ActionController::UnknownFormat, message
    else
    logger.info "No template found for #{self.class.name}##{action_name}, rendering head :no_content" if logger
    super

  12. Joshua Carpenter Avatar

    Hey Derek, do you think that Ruby/Rails is still worthwhile to learn? I've put in several hours into learning Ruby and I've started looking at Rails tutorials, but I'm a little hesitant to go any further as I've seen several people say that it's lost its relevance.

  13. Thomas Farid Avatar

    thank you so much sir.

  14. MRGCProductions20996 Avatar

    how is this preffered to xampp?

  15. tinomutendaishe msakwa Avatar

    Hey derek, why did you need to go into mysql to make your table? Doesn't rails allow you to make one by just simply generating it?

  16. CubesFTW Avatar

    What if I want to use SQLite?

  17. CubesFTW Avatar

    rails handles the naming and capitalization itself?

  18. Abhishek Sharma Avatar

    Hi Derek, very impressive video. Good content, great speed for someone who wants to pick ror fast.

  19. Up4lIFe Avatar

    At 19:50 it throws an error. I even copied the transcript. Could that be because I'm not using MySQL?

  20. Suvajit Chakrabarty Avatar

    You are just awesome ! I believe those complaining that you have missed out on some steps like mysql etc. should at least appreciate what you are doing for so many people interested to learn before pointing out what is wrong with your tutorial.

Leave a Reply

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