Not nesvessarily. I remember looking for a book on C++ and kept finding books with errors in them. It was a long time ago, so I only remember one of them, but there were a few that almost every book made. The one that stuck in my mind is that almost all the authors kept referring to "data structures" as "data". It may seem like something insignificant to many but there is a difference. It got to the point where In would scan the book quickly to check for those errors and discarded it when I found,them. I did find a book whose author did not make those errors and bought it.
Omg this joke is funny 😂 no one would actually get the FCC also means Federal Communications Commission that handles all of this 😂and is also this group of free coding camp. No lie this was genius
So I was here when this video had a less than hundred views and I was learning rails. Hands down, best tutorials I could find when I needed guidance and help in understanding rails. John Elder helped in the way I never thought someone could help other person. And appreciating him is the least I could do. For someone just starting out with rails, this tutorial is the best kick-start to the journey. And be persistent, it's gonna come to you :)
I completely agree with you Anish. John Elder is an incredible teacher. I'm new to rails too. I came across him about a week ago and picked up 4 of his courses in a Udemy sale a couple of days later. They are project based with fast facts coming at you in an easy to understand way.
Mr.Anish hope u are ok today ,would you recommend me learning rails today in 2023 .Am asking because finding a job is most important after learning .Please advise.Kind regards.
@@ezziwa Sorry for the late reply. And to answer your question, yes I'd totally learn rails today as well. I am working on rails at presently and there are plenty of jobs out there. Good luck to you
For those having trouble with tzinfo-data: 1. gem uninstall tzinfo-data 2. In the Gemfile, replace 'gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]' to just gem "tzinfo-data" 3. bundle install
@@Bootskum1 You are correct, the `Gemfile` is inside the directory that has been made using the `rails new` command, open the `Gemfile` using a text edior (I used notepad++) and then replace gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] with gem "tzinfo-data"
For those who get the Error: No route matches [GET] "/users/sign_out" at 1:57:00, you need to add this in the routes.rb file: devise_scope :user do get '/users/sign_out' => 'devise/sessions#destroy' end
For y'all having a prob in the signout page, at 1:57:00 the "method: :delete" doesnt work. It needs to be "data: {turbo_method: :delete}" because rails-ujs got removed. Make sure to install turbo before by following these steps: 1-Add the turbo-rails gem to your Gemfile: gem 'turbo-rails' 2-Run ./bin/bundle install. 3-Run ./bin/rails turbo:install.
This is a good one! I started my Rails journey 3 months ago and tried to follow along 4 different tutorials and got lost during the process. I stumbled upon this and finished it within 2 days alongside my regular mundane work and was not distracted. It is worth giving it a try. I have enjoyed it very much. Thank you!
Overall this was a good tutorial. I was expecting more detailed explanations as to what exactly we are coding but it is more project-based where you code along. Also, as the video gets older it is important to note that there will be a number of issues you will run into. 1) There is about an hour spent on styling using Bootstrap. The version used is outdated and some parts are deprecated so you will need to make adjustments. 2) The Rails autogenerated pages for the Friends section is quite different than what is shown on the video 3) There is not much explanation as to what is going on in when Rails autogenerates stuff so that we can somehow troubleshoot any errors we may be having. 4) Ive ran into issues with destroying a friend, Sign in error. There are a few more other users have mentioned so check the comments to see what adjustments you may need.
Thanks for this. I know lengthy videos like this are usually judged by the name instead of the actual content, so it's good we get an idea of what to look for.
thanks for going over this in such a way that feels as if youre actually explaining to someone who is learning and not someone who has 10 + years developing and is taking a refresher
Best ROR tutorial for beginners! Believe me this is the first time I've felt like commenting for a tutorial video. This tutorial covers all aspects right from scratch to deployment. Something every beginner wants to learn. 'John Elder' does the best job here. Thumbs Up, Wayyy to go...Cheers man :D
This is one of the best tutorials I have ever followed since I started studying rails. I have to say that you explain it very well and every instruction that I have followed has worked perfectly. Thank you very much and please continue sharing knowledge like this. thank you very much and Happy New Year 2021.
Great teacher/lecturer yes, but for other languages, you have to find other lecturers like Kylie Ying for Python. Mike Dane is good for C++, although he offered both C++ and Python, I rate him well, almost 100% for C++ but not for Python [a point from Multivariate Models - be able to remove irrelevant features and then validate or rank non-redundant features]. Ka Modimo.
In a Multivariate Model we aim to - remove irrelevant features and then validate or rank non-redundant features, thereby reaching/achieving Learning Accuracy with better performance. Division of ML - a consistent or the best feature selection. Ka Modimo.
As someone who's been cursed with errors and other headaches related to coding, the sigh of relief I breathed when everything worked during the introduction was GREAT. Thanks for this tutorial, your channel is extremely helpful.
I’m speechless. This is one of the best tutorials I’ve ever watched. Anytime I start having a question you literally answer it seconds later. I will continue to reference this video as I work more with rails
John my man, you made are a great teacher. You made Django easy for me when it was too much for me, now I say this thumbnail with 4 hours timestamp and just randomly hovered and again saw John teaching stuff, no second thoughts clicked it and started thank you soo much dudeeee
Good course but, there are some mistakes that I had following these instructionns. You see, I'm using Rails 7 so it was different from Rails 6, so these are the changes: I used this sintx in order to SIGN OUT I had to change the submit buttons (sessions and registrations) functionality to:
I flabbergasted. I built a database system once and I can't belive I never used ruby on rails before. it's fascinating how much faster using this than making it from scratch.
First time on rails great tutorial! One thing to add for future reference, when we add the bootstrap class to the Edit and Back on the friends view, do it like this :class => "btn btn-primary". The one on the video broke for me on Rails 7.0.3, ruby 3.1.2p20
47:39 if you are seeing an error page, try changing the word 'about' as it is already a keyword in newer versions of rails. I used 'abot' and it worked
In Rails 7 If you are having problems signing out: 1- Add this line to your devise.rd file: config.navigational_formats = ['*/*', :html, :turbo_stream] 2- In the devise.rb file change the sign out route to get: config.sign_out_via = :get file location: config > initializers > devise.rb
For anyone having trouble with the Sign up process on Rails 7, go to config/initializers/devise.rb and add this line config.navigational_formats = ['*/*', :html, :turbo_stream] , then migrate and restart the server. And for those getting an error signing out replace the link_to line with this:
Iam microverse student now here it's my first time watched full tutorial with break or leaving half way ❤❤I liked tutorial and I know some version are updated and some outdated I will fix that but all I want to say is thank you John for making my journey rails easier😊
This course is amazing!!!! I went through the entire course, made some mistakes so I had to back track and fix some stuff but it wasn't unreasonable. The amount of things this framework brings is JAW DROPPING. Very easy to understand. Thank you for demystifying Rails for me!
I have a problem with the DELETE method, it dosn't work for me (destroy link and sign out) they don't work eventhough i did the same thing you did in the video . also when I log in, the page only do the refresh thing and do not log me in. anybody Know why ? :(
i bought a full corse in this and this YT video you posted for free is leaps and bounds more descriptive, you explained everything in way that makes one feel not so overwhelmed. Thank you Sir
About to finish the first 1 hour and I think this is the best, easiest to understand rails tutorial I've found so far. Thank you very much for putting this content online!
After I have been learning Rails on my own for three weeks, this video tutorial just solved many questions in my mind so easily. I will recommend this to everyone who wants to improve their skills in Ruby on Rails. Many thanks to the creators of this video. Great job!
I loved the intro to this lamenting that the hardest part about Ruby on Rails is installing it. Totally my experience. Took me two days to figure out all the installation.
Hi, when I try to run the server after creating a home/index page i get the following error. I wonder if you can help me. Error: Cannot find module './templates.js' Require stack: - C: ailsfriends\friends ode_modules\chalk\index.js - C: ailsfriends\friends ode_modules\webpack-assets-manifest\src\helpers.js - C: ailsfriends\friends ode_modules\webpack-assets-manifest\src\WebpackAssetsManifest.js - C: ailsfriends\friends ode_modules\@rails\webpacker\package\environments\base.js - C: ailsfriends\friends ode_modules\@rails\webpacker\package\index.js - C: ailsfriends\friends\config\webpack\environment.js - C: ailsfriends\friends\config\webpack\development.js - C: ailsfriends\friends ode_modules\webpack-cli\bin\utils\convert-argv.js - C: ailsfriends\friends ode_modules\webpack-cli\bin\cli.js - C: ailsfriends\friends ode_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (C: ailsfriends\friends ode_modules\v8-compile-cache\v8-compile-cache.js:15
Finally I could make rails works using this installation method. If you follow carefully each step you will not have any problem with rails. July - 2023 (Rails 7.0.6) Ruby (3.2.2)
I just wanted to mention that I'm on linux and luckily my installation came with nodejs and ruby pre-installed. So a lot of the beginning stuff was already done for me. Yay me!
Indeed, the installation of Ruby on Rails was previously the most challenging thing for me. After changing my laptop, I was forced to abandon the platform due to my inability to reinstall it, despite following the provided instructions. However, I experienced a yahoo moment today; I used ChatGPT-4 for the installation process. And the seemingly daunting task was completed in a mere ten minutes.
Had a issue with "gem install rails" in git bash. It failed over and over again even after updates. I fixed the issue by trying the same command in cmd, and then try it again in gitbash, and now it working perfect.
I still got the install to work in July 2022. It was a pain and I had to do a workaround or two, but it wasn't bad. Long story short, after everything was installed, I created the project, which failed. Then I used ruby update --system, then I went into the project and used bundle update. Then I re-created the project to overwrite it, and it worked.
No Resourceful friend, It is mostly scaffolds all the times with them, then decided to just Destroy them all [CRUD]. Many students like that function, no Resourceful Database.
Hello John, First of all, thank you for this excellent course. The migration you created in the Associations section actually just added the user_id field to the friends table and created an index on it, so actually it didn't create any foreign key or something between these two tables, so I couldn't understand why we wrote belongs_to or something inside the models.
Maybe next time have a full screen of the code so we can see the entire written code. I followed this step by step and when it gets to thw style with bootstrap portion. Something with tbe current version of ROR makes it to where the index.html.erb friends file is incomplete. It just shows a div and not a table and thead
you remember me at my TCP/IP-Trainer at DITEC MCSE WIN NT 4.0 in Donaueschingen in 1998, he gave us perfect knowledge, I still benefit from, go ahead like this
UPDATES 2022: - If you can't install gems into ruby, try doing it directly though the CMD terminal, Git Bash sometimes have problems recognizing environments and can bug really easy specially on Windows 10. - If you are having problems with the delete button / method, try changing it to button_to and the rest of the code is almost the same as shown in the video. - I couldn't make the delete confirmation pop-up works, if you made it work please leave on the comments how you did it. - For those having trouble with the white background on the video: Turn On the Night Light (also known as Blue Filter) in windows 10. To do this, just go to your desktop, right click on it and click on "Display Settings" and turn the night light on. If it doesn't work, hit in "Night light settings" and then on: "Turn on now". This makes the white background much more tolerable. I finished the course and this is my review about it: Good course, but spends a lot of time off the goal. There's actually less than 2.3hs talking about Ruby / RoR and most of the talk is about Bootstrap or styling or git / github / heroku. So there's no point on calling these a full course about Rails. But anyway, maybe the course is aimed for people who never programmed before, have no idea about it and just want to get their hands dirty. I don't recommend it because there isn't too much explanation about the code and is just a "copy this and paste it here, believe me it works." and that's it. No technical explanations or teaches what the documentation actually means. Coding is not magic or a Cook Recipe...
Could you make this ( @friend = current_user.friends.build ) work ?
2 года назад+1
update in 2022, you can install ruby on rails in a no brainer mode: - install wsl - install vs code - use dev container That's it, work for me without any error. To be honest, I hate ruby on rails, I just attend this course to migrate an existing ruby on rails system to nodejs.
In the CRUD scaffold step, it does not create a table in the index.html.erb. Is this due to a newer version of Rails? How do I get it to create a table automatically?
I had the same issue, I had to go to 1:26:30 on the video and basically pause several times quickly to get the right formatting. I'll post it below for ease, but this is just a workaround since it's not creating the same way by default. Also, you'll need to delete the '_friend.html.erb' file in the same directory, as that is how it is formatting the data instead of using a table like the video shows. Once I deleted that file and made the changes listed below, I was able to see the same page as him. Pretty frustrating, but frustration comes with this type of thing unfortunately. The following code between the dashed lines is what he has at 1:26:57 -------------------------------------------------------------------------
First Name Last Nameth> Email Phone Twitter
--------------------------------------------------------- Hopefully you weren't stuck too long, if you were though I hope this helps!
@@levilyon7088 Oh wow, thank you so much! I usually work in Python, so I didn't have the background in Ruby (or just Rails in general) to google this correctly.
@@levilyon7088 I'm now getting an error when trying to create a new friend saying 'Missing partial friends/_friend with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.'
OMG 🤭!!!! I had a horrible time trying to install Ruby on Windows! I had to give up and tried Linux and it was way easier, but still had some minor issues. So, I feel so related to minute 3.8 🤣
Salutes, mr John Elder! You again! Thanks for the help with Tkinter in my database systems specialization! Thanks to your help and PAGE, I managed to make a GUI to access a Postgres DB.
the best channel that i've ever met, i needed information about rails and kaboom, there is!! thank you very very very much, and also im learning english, greetings from Peru, this channel should receive all the awards in this area for everything you do
Great video, thanks! Just would point out that from 1:42:46 - 1:57:30, the part to get Devise working, I followed the video and got an error, took me some time to find out the issue, there is one step missing to create the controllers. Run this command and everything will be just working. rails generate devise:controllers users This will generate the controllers requires for the views.
hey i'm not able to get this running. pls help. Everything works and doesnt serve any error. But on the local host i'm unable to sign up. Terminal says transaction rolled back.
Thanks so much for this. I've been stuck on this part for days with "undefined method `user_url' for # ". I tried what you suggested but it still isn't working for me. Maybe I added something inadvertently when trying to fix it myself. I may have to just start from the beginning again. So frustrating to get everything right up to this point - then problems.
@@Bigdog33R , if you could upload code to github, I could take a look at to see what is the problem. The video was built on Rails 6, if you are using rails 7, might be slightly different.
It is down, alternatively you can install ruby, then in git bash run, gem install bundler, and then run, gem install rails, and it should work for you, after that you can skip the instalation steps but you still have to generate the project file.
I started to follow this out of a whim. Installation on ubuntu went ok, also connecting the database. But that's where I parted ways with the video, as I had installed the latest Ruby and Rails and this video being three years old. I was able to follow the video for 1h 15mins, which must have taken me some 3 hours with installation and pausing. It took me quite a few hours to be able to render the table and get the links working. But it was that painful debugging where I actually learned something. It was interesting to see how easy it was to create the project and attach it to database. But to be able to do something interesting, I think I need to learn the basics of Rails first.
For anyone who enjoyed working with Ruby or Ruby on Rails over the past year, please let your voice be heard in the 2021 Stack Overflow Developer Survey.
As he said, the most complex stuff is to install ruby ..it was a pain for me. .. i saw a lot of videos because a problem just apears behind another.. no just because the installin, but the pc or windows configuraron.. many questions on foros and to ia later i cod install it . then someone recomend me this full course and at this time it is Wonderfull!! thank you John Edler!
In the 'Style with bootstrap' section, when you open your views (such as friends/index.html.erb), it shows a table in the HTML. For me it just shows something like and then . It renders in my browser with no table. I had to go in and add the entire table in my index.html.erb file. Does anyone know why this is happening? I'm brand new to ruby on rails.
I started about the same time as you, and the same happened for me. Perhaps ROR has changed something in the year since this course was released. I had some trouble installing it too and had to find different instructions from what the original was. Right now I'm stuck just after installing devise and setting the nav paths for sign up, sign in etc. The sign up page displays fine, but when I try to sign up I get an error NoMethodError in Devise::RegistrationsController#create. I've asked for help on substack but no help yet. I rechecked every step I did against the video, and did everything the same. So frustrating.
Yep exact same thing pretty much. I got the same or a similar error when attempting to register/sign up a user. I haven’t spent much time on it since then. Maybe need to do some more general ROR learning to figure that out. Let me know if you can make it work , I’ll do the same.
@@kami_dende I found a comment from George Meng below here where he said that a step was missing, and to type: rails generate devise:controllers users It seemed right to me, as the issue seems to be with the controller path, but I tried this and it still doesn't work.
Bro the amount of work it would normally take to do this with the MERN stack is so much more. Astronomical. You have to manually set up all the boiler plate and server code individually write all the api endpoints for each operation(CRUD) In the client, create the "list all contacts", "new contact", and "edit contact" pages You can add the destroy button to the edit or list all But we know just a button in HTML does nothing, so you also have to connect these forms and pages to the express routes(API endpoints) ALL THAT took installing rails(on linux not too bad), and then running a few commands...
ngl with the amount of praise the video gets even in recent comments, I expected something a lot more comprehensive, not to mention how the version differences made it ten times harder than it needed to be
I've got halfway thru the course and I like your way of teaching. You keep it light and easy. To bad the code you use is outdated and are full of errors now. It will teach you bugfixing 😂
Its down, but, you can install ruby, then in git bash run, gem install bundler, and then run, gem install rails, and it should work for you, after that you can skip the instalation steps but you still have to generate the project file.
So FCC actually provided us a tutorial by someone with 2 best sellers on ruby. Incredible!
lmao, 2 "best sellers" is subjective and hardly an achievement for anyone well versed in Ruby.
@@hiddenaether Sure, except only a small percentage of people ever even write a book, so I'd say it's an achievement for anybody.
Not nesvessarily. I remember looking for a book on C++ and kept finding books with errors in them. It was a long time ago, so I only remember one of them, but there were a few that almost every book made. The one that stuck in my mind is that almost all the authors kept referring to "data structures" as "data".
It may seem like something insignificant to many but there is a difference.
It got to the point where In would scan the book quickly to check for those errors and discarded it when I found,them.
I did find a book whose author did not make those errors and bought it.
@@hiddenaether haters gonna hate 🤣😂🤣☝️
Omg this joke is funny 😂 no one would actually get the FCC also means Federal Communications Commission that handles all of this 😂and is also this group of free coding camp. No lie this was genius
So I was here when this video had a less than hundred views and I was learning rails. Hands down, best tutorials I could find when I needed guidance and help in understanding rails. John Elder helped in the way I never thought someone could help other person.
And appreciating him is the least I could do.
For someone just starting out with rails, this tutorial is the best kick-start to the journey. And be persistent, it's gonna come to you :)
I completely agree with you Anish. John Elder is an incredible teacher. I'm new to rails too. I came across him about a week ago and picked up 4 of his courses in a Udemy sale a couple of days later. They are project based with fast facts coming at you in an easy to understand way.
Mr.Anish hope u are ok today ,would you recommend me learning rails today in 2023 .Am asking because finding a job is most important after learning .Please advise.Kind regards.
@@ezziwa Sorry for the late reply. And to answer your question, yes I'd totally learn rails today as well. I am working on rails at presently and there are plenty of jobs out there. Good luck to you
For those having trouble with tzinfo-data:
1. gem uninstall tzinfo-data
2. In the Gemfile, replace 'gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]' to just gem "tzinfo-data"
3. bundle install
thank you so much!!
Where do I find the gemfile?(step2)
thanks buddy
@@Bootskum1 You are correct, the `Gemfile` is inside the directory that has been made using the `rails new` command, open the `Gemfile` using a text edior (I used notepad++) and then replace gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] with gem "tzinfo-data"
thanks, was lost
For those who get the Error: No route matches [GET] "/users/sign_out" at 1:57:00, you need to add this in the routes.rb file:
devise_scope :user do
get '/users/sign_out' => 'devise/sessions#destroy'
end
thank you
For y'all having a prob in the signout page, at 1:57:00 the "method: :delete" doesnt work. It needs to be "data: {turbo_method: :delete}" because rails-ujs got removed. Make sure to install turbo before by following these steps:
1-Add the turbo-rails gem to your Gemfile: gem 'turbo-rails'
2-Run ./bin/bundle install.
3-Run ./bin/rails turbo:install.
Thank you for this!
we need to install node and yarn
thanks for the trick!
This is a good one! I started my Rails journey 3 months ago and tried to follow along 4 different tutorials and got lost during the process. I stumbled upon this and finished it within 2 days alongside my regular mundane work and was not distracted. It is worth giving it a try. I have enjoyed it very much. Thank you!
Overall this was a good tutorial. I was expecting more detailed explanations as to what exactly we are coding but it is more project-based where you code along. Also, as the video gets older it is important to note that there will be a number of issues you will run into.
1) There is about an hour spent on styling using Bootstrap. The version used is outdated and some parts are deprecated so you will need to make adjustments.
2) The Rails autogenerated pages for the Friends section is quite different than what is shown on the video
3) There is not much explanation as to what is going on in when Rails autogenerates stuff so that we can somehow troubleshoot any errors we may be having.
4) Ive ran into issues with destroying a friend, Sign in error. There are a few more other users have mentioned so check the comments to see what adjustments you may need.
its free content bro, reading docs that align with your version and googling goes a long way in troubleshooting
@@kevinren3753 Relax. He's only pointing out the issues with a two-year old programming tutorial, which is quite important to new users.
Thanks for this. I know lengthy videos like this are usually judged by the name instead of the actual content, so it's good we get an idea of what to look for.
@@maxcohen13 lol im just saying, read the docs, tutorial videos are almost never enough on their own, best of luck.
use this instead if you use link_to data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' }
For those having issues with the sign_out (destroy_user_session_path) do the following:
change "method: :delete" to "data: { turbo_method: :delete }"
i was searching and searching for a solution, thank you!
@@jayknows9596 no problem. I know the feeling haha.
You saved me🙏
thank you, mate! God blessssss
Thanks!
thanks for going over this in such a way that feels as if youre actually explaining to someone who is learning and not someone who has 10 + years developing and is taking a refresher
Best ROR tutorial for beginners! Believe me this is the first time I've felt like commenting for a tutorial video. This tutorial covers all aspects right from scratch to deployment. Something every beginner wants to learn. 'John Elder' does the best job here. Thumbs Up, Wayyy to go...Cheers man :D
Couldn't agree more with every word ❤️
This is one of the best tutorials I have ever followed since I started studying rails. I have to say that you explain it very well and every instruction that I have followed has worked perfectly. Thank you very much and please continue sharing knowledge like this.
thank you very much and Happy New Year 2021.
Great teacher/lecturer yes, but for other languages, you have to find other lecturers like Kylie Ying for Python. Mike Dane is good for C++, although he offered both C++ and Python, I rate him well, almost 100% for C++ but not for Python [a point from Multivariate Models - be able to remove irrelevant features and then validate or rank non-redundant features]. Ka Modimo.
In a Multivariate Model we aim to - remove irrelevant features and then validate or rank non-redundant features, thereby reaching/achieving Learning Accuracy with better performance. Division of ML - a consistent or the best feature selection. Ka Modimo.
John Elder is the best Ruby on Rails teacher (youtuber)of the days in my humble opinion
Wow Thanks!
A really brief video to get familiar with Rails. I appreciate it. Keep up the excellent work.
As someone who's been cursed with errors and other headaches related to coding, the sigh of relief I breathed when everything worked during the introduction was GREAT. Thanks for this tutorial, your channel is extremely helpful.
I’m speechless. This is one of the best tutorials I’ve ever watched. Anytime I start having a question you literally answer it seconds later. I will continue to reference this video as I work more with rails
Where do you contact him?
@@herbertsantos141 I meant in the video he ends up answering my questions like seconds later
John my man, you made are a great teacher. You made Django easy for me when it was too much for me, now I say this thumbnail with 4 hours timestamp and just randomly hovered and again saw John teaching stuff, no second thoughts clicked it and started thank you soo much dudeeee
I like python but i gave up on django
To those who complain about outdated vesions or systems, just make adjustments. The information is still valuable to learn and understand.
Good course but, there are some mistakes that I had following these instructionns.
You see, I'm using Rails 7 so it was different from Rails 6, so these are the changes:
I used this sintx in order to SIGN OUT
I had to change the submit buttons (sessions and registrations) functionality to:
Greetings!
I kept googling for this for hours and you saved me. Thanks!
@@user-jx5or8pk2m No problem! I know, there isn't much information about it. If you have another problem, maybe I could help you.
Thanks, this was causing some real frustrations!
@@JorgeOrtiz-qn3rw Do you have discord?
You're the best man
I flabbergasted. I built a database system once and I can't belive I never used ruby on rails before.
it's fascinating how much faster using this than making it from scratch.
First time on rails great tutorial! One thing to add for future reference, when we add the bootstrap class to the Edit and Back on the friends view, do it like this :class => "btn btn-primary".
The one on the video broke for me on Rails 7.0.3, ruby 3.1.2p20
I used Ruby 3.2.2 and Rails 7.1.3 for this, and although I did not find many differences, I still think this is a great tutorial.
I have an issue, when clicking delete in my friends list, it redirects me to the show page, can you help me with that? ty, i dont want it to redirect
we need to install node and yarn
I can watch this all day without getting bored.
47:39 if you are seeing an error page, try changing the word 'about' as it is already a keyword in newer versions of rails. I used 'abot' and it worked
In Rails 7 If you are having problems signing out:
1- Add this line to your devise.rd file: config.navigational_formats = ['*/*', :html, :turbo_stream]
2- In the devise.rb file change the sign out route to get: config.sign_out_via = :get
file location: config > initializers > devise.rb
Thank you so much for posting this
thank you so much!
i love you man!
I was waiting for this video from this channel, finally❤
buummm said the peeled! Yes now! Thank you very much John. I finish the CRUD and Login with Ruby on Rails course and post on Heroku too. Thanks a lot!
This has been an incredible teaching; was damn easy to learn and implement parallelly. Thank you John for helping me in my ROR journey.
Just finished and deployed the app. Love it, definitely highly recommended. Will check out your other courses. Thanks :)
For anyone having trouble with the Sign up process on Rails 7, go to config/initializers/devise.rb and add this line
config.navigational_formats = ['*/*', :html, :turbo_stream] , then migrate and restart the server. And for those getting an error signing out replace the link_to line with this:
Thank you, this helped with the error I was getting on sign up!
You are a legend! Thank you so much. I was about to just quit this tutorial until I found your comment on the Sign up issue.
Heisenberg teaching rails.
Fr
we got heisenberg teaching rails before gta 6
Iam microverse student now here it's my first time watched full tutorial with break or leaving half way ❤❤I liked tutorial and I know some version are updated and some outdated I will fix that but all I want to say is thank you John for making my journey rails easier😊
God blesses internet and how fast you can download knowledge to your brain with videos!
the best course ever, i am a beginner but I can say I can now build a CRUD app will start testing my skill on building a difficult website
Awesome content! Thanks for the 4 hours of pure wisdom and very well planned teaching
I would appreciate a tutorial with React + Rails too from this guy
Thank you very much sir i just created my first ruby on rails project under your guidance ...... a big thank you sir🤝🤝
This course is amazing!!!! I went through the entire course, made some mistakes so I had to back track and fix some stuff but it wasn't unreasonable. The amount of things this framework brings is JAW DROPPING. Very easy to understand. Thank you for demystifying Rails for me!
If the following line is not working for you:
Use this instead:
Great, i had the same problem, and your solution, resolve it ! top! thanks
I have a problem with the DELETE method, it dosn't work for me (destroy link and sign out) they don't work eventhough i did the same thing you did in the video . also when I log in, the page only do the refresh thing and do not log me in. anybody Know why ? :(
i bought a full corse in this and this YT video you posted for free is leaps and bounds more descriptive, you explained everything in way that makes one feel not so overwhelmed. Thank you Sir
One of the best lectures I have seen. Successfully implemented and deployed.
About to finish the first 1 hour and I think this is the best, easiest to understand rails tutorial I've found so far. Thank you very much for putting this content online!
After I have been learning Rails on my own for three weeks, this video tutorial just solved many questions in my mind so easily. I will recommend this to everyone who wants to improve their skills in Ruby on Rails. Many thanks to the creators of this video. Great job!
I loved the intro to this lamenting that the hardest part about Ruby on Rails is installing it. Totally my experience. Took me two days to figure out all the installation.
Great course!! Really enjoyed refreshing my rails skills with this fun project 🤗! Also curious if anyone else switched from .erb to haml? 🤔
No, the oppose will be True, erb for Now!
Hi, when I try to run the server after creating a home/index page i get the following error. I wonder if you can help me.
Error: Cannot find module './templates.js'
Require stack:
- C:
ailsfriends\friends
ode_modules\chalk\index.js
- C:
ailsfriends\friends
ode_modules\webpack-assets-manifest\src\helpers.js
- C:
ailsfriends\friends
ode_modules\webpack-assets-manifest\src\WebpackAssetsManifest.js
- C:
ailsfriends\friends
ode_modules\@rails\webpacker\package\environments\base.js
- C:
ailsfriends\friends
ode_modules\@rails\webpacker\package\index.js
- C:
ailsfriends\friends\config\webpack\environment.js
- C:
ailsfriends\friends\config\webpack\development.js
- C:
ailsfriends\friends
ode_modules\webpack-cli\bin\utils\convert-argv.js
- C:
ailsfriends\friends
ode_modules\webpack-cli\bin\cli.js
- C:
ailsfriends\friends
ode_modules\webpack\bin\webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (C:
ailsfriends\friends
ode_modules\v8-compile-cache\v8-compile-cache.js:15
Finally I could make rails works using this installation method. If you follow carefully each step you will not have any problem with rails.
July - 2023 (Rails 7.0.6) Ruby (3.2.2)
I just wanted to mention that I'm on linux and luckily my installation came with nodejs and ruby pre-installed. So a lot of the beginning stuff was already done for me. Yay me!
YESSS!!!!!!!!!!!!!!!! RUBY COMEBACK LETS GOOOOOOOOOOOOOOOOOOOOOOOO
Yes, I am still using Jekyll.
Indeed, the installation of Ruby on Rails was previously the most challenging thing for me. After changing my laptop, I was forced to abandon the platform due to my inability to reinstall it, despite following the provided instructions. However, I experienced a yahoo moment today; I used ChatGPT-4 for the installation process. And the seemingly daunting task was completed in a mere ten minutes.
Had a issue with "gem install rails" in git bash. It failed over and over again even after updates. I fixed the issue by trying the same command in cmd, and then try it again in gitbash, and now it working perfect.
THANK YOU. I was having this same issue and this fixed it...after HOURS of troubleshooting...
@@lobster3496 No problems :)
Your video and teaching is excellent thankyou. I'm relatively new to web development and this is fantastic
This has to be one of the best Rails videos. Thank you for this content!
I am indebted to this channel. This channel is our saviour.
You are an energetic and gifted teacher. Keep up the great work.
I still got the install to work in July 2022. It was a pain and I had to do a workaround or two, but it wasn't bad.
Long story short, after everything was installed, I created the project, which failed. Then I used ruby update --system, then I went into the project and used bundle update. Then I re-created the project to overwrite it, and it worked.
Throughout my coding journey kept sayin CRUD as Create Read Update Delete, and first time I have heard it's D for Destroy.
No Resourceful friend, It is mostly scaffolds all the times with them, then decided to just Destroy them all [CRUD]. Many students like that function, no Resourceful Database.
This video needs to be part of the global encyclopedia for humankind's important knowledge
Ruby, my first love! ♥️
Mine too. I continually try other newer "hip" languages, but Ruby always pulls me back in.
Hello John,
First of all, thank you for this excellent course.
The migration you created in the Associations section actually just added the user_id field to the friends table and created an index on it, so actually it didn't create any foreign key or something between these two tables, so I couldn't understand why we wrote belongs_to or something inside the models.
Maybe next time have a full screen of the code so we can see the entire written code. I followed this step by step and when it gets to thw style with bootstrap portion. Something with tbe current version of ROR makes it to where the index.html.erb friends file is incomplete. It just shows a div and not a table and thead
Same here, is there a specific step to take so we get the index.html.erb to have the a table & thead and not just a div ?
you remember me at my TCP/IP-Trainer at DITEC MCSE WIN NT 4.0 in Donaueschingen in 1998, he gave us perfect knowledge, I still benefit from, go ahead like this
UPDATES 2022:
- If you can't install gems into ruby, try doing it directly though the CMD terminal, Git Bash sometimes have problems recognizing environments and can bug really easy specially on Windows 10.
- If you are having problems with the delete button / method, try changing it to button_to and the rest of the code is almost the same as shown in the video.
- I couldn't make the delete confirmation pop-up works, if you made it work please leave on the comments how you did it.
- For those having trouble with the white background on the video: Turn On the Night Light (also known as Blue Filter) in windows 10.
To do this, just go to your desktop, right click on it and click on "Display Settings" and turn the night light on.
If it doesn't work, hit in "Night light settings" and then on: "Turn on now".
This makes the white background much more tolerable.
I finished the course and this is my review about it:
Good course, but spends a lot of time off the goal.
There's actually less than 2.3hs talking about Ruby / RoR and most of the talk is about Bootstrap or styling or git / github / heroku. So there's no point on calling these a full course about Rails.
But anyway, maybe the course is aimed for people who never programmed before, have no idea about it and just want to get their hands dirty.
I don't recommend it because there isn't too much explanation about the code and is just a "copy this and paste it here, believe me it works." and that's it.
No technical explanations or teaches what the documentation actually means. Coding is not magic or a Cook Recipe...
Could you make this ( @friend = current_user.friends.build ) work ?
update in 2022, you can install ruby on rails in a no brainer mode:
- install wsl
- install vs code
- use dev container
That's it, work for me without any error.
To be honest, I hate ruby on rails, I just attend this course to migrate an existing ruby on rails system to nodejs.
Incredibly good course to get started with Rails, learned a lot in 4 hours!
While some dudes told me that ruby is gonna die..... I think ruby have over 10 years left at least.
bro did u also got through the whole installation process and got error on localhost:3000? please help me out if u can
You guys are amazing and born to be teaching.......
I was waiting for this one. Thankyou
I had an easier time with this installation method than I did using WSL. Cheers.
In the CRUD scaffold step, it does not create a table in the index.html.erb. Is this due to a newer version of Rails? How do I get it to create a table automatically?
I had the same issue, I had to go to 1:26:30 on the video and basically pause several times quickly to get the right formatting. I'll post it below for ease, but this is just a workaround since it's not creating the same way by default. Also, you'll need to delete the '_friend.html.erb' file in the same directory, as that is how it is formatting the data instead of using a table like the video shows. Once I deleted that file and made the changes listed below, I was able to see the same page as him. Pretty frustrating, but frustration comes with this type of thing unfortunately.
The following code between the dashed lines is what he has at 1:26:57
-------------------------------------------------------------------------
First Name
Last Nameth>
Email
Phone
Twitter
---------------------------------------------------------
Hopefully you weren't stuck too long, if you were though I hope this helps!
@@levilyon7088 Oh wow, thank you so much! I usually work in Python, so I didn't have the background in Ruby (or just Rails in general) to google this correctly.
@@levilyon7088 I'm now getting an error when trying to create a new friend saying 'Missing partial friends/_friend with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.'
never mind keeping the '_friend.html.erb' and not deleting fixed this error for me
It seemed to work for me at the time, glad you were able to figure it out!
OMG 🤭!!!! I had a horrible time trying to install Ruby on Windows! I had to give up and tried Linux and it was way easier, but still had some minor issues. So, I feel so related to minute 3.8 🤣
I love ruby on rails so bad.
Salutes, mr John Elder! You again! Thanks for the help with Tkinter in my database systems specialization! Thanks to your help and PAGE, I managed to make a GUI to access a Postgres DB.
"Because python can do anything
just badly" Micheal Reeves
I've waited this video so so long.. Thank you for making this happen. Rails one of the Best Web framework OUT there. So much convenient
For anybody who had the same issue as me where :delete functionality isn't working (3:20:00) try button_to instead of link_to
Thanks a lot bro... I was about to give up on solving this problem🙏🙏
It's year 2022 and this is the best ROR tutorial video PERIOD!
Really appreciate your content.
Please make a tutorial of Rust programming language.
For what it's worth, installing RVM was the easiest way for me to setup ruby on rails stack!
This is so useful, thank you!
the best channel that i've ever met, i needed information about rails and kaboom, there is!! thank you very very very much, and also im learning english, greetings from Peru, this channel should receive all the awards in this area for everything you do
Freecodecamp making new programmers life easy.
Ruby on Rails is for serious servers, not for secretaries or game users under windoz. Most serious servers use a variant of Unix.
Great video, thanks!
Just would point out that from 1:42:46 - 1:57:30, the part to get Devise working, I followed the video and got an error, took me some time to find out the issue, there is one step missing to create the controllers. Run this command and everything will be just working.
rails generate devise:controllers users
This will generate the controllers requires for the views.
hey i'm not able to get this running. pls help. Everything works and doesnt serve any error. But on the local host i'm unable to sign up. Terminal says transaction rolled back.
@@divijjain4674 , if you post code to github, might be much easier for others to check the code the code as of now.
hey man, could you please look at the code. Any help is appreciated. github.com/jaindivij21/friends-list
Thanks so much for this. I've been stuck on this part for days with "undefined method `user_url' for # ". I tried what you suggested but it still isn't working for me. Maybe I added something inadvertently when trying to fix it myself. I may have to just start from the beginning again. So frustrating to get everything right up to this point - then problems.
@@Bigdog33R , if you could upload code to github, I could take a look at to see what is the problem. The video was built on Rails 6, if you are using rails 7, might be slightly different.
Dude...I just started getting ready for a bootcamp....ty....You're a hero.
good day sir. it seems that the railsinstaller.org is not anymore available.. is there other links?
It is down, alternatively you can install ruby, then in git bash run, gem install bundler, and then run, gem install rails, and it should work for you, after that you can skip the instalation steps but you still have to generate the project file.
Destroy option is not work for mee,i dont know how to make work it
Same!
Rails would be a lot more popular to use if it weren't for the windows issues.
I started to follow this out of a whim. Installation on ubuntu went ok, also connecting the database. But that's where I parted ways with the video, as I had installed the latest Ruby and Rails and this video being three years old. I was able to follow the video for 1h 15mins, which must have taken me some 3 hours with installation and pausing. It took me quite a few hours to be able to render the table and get the links working. But it was that painful debugging where I actually learned something. It was interesting to see how easy it was to create the project and attach it to database. But to be able to do something interesting, I think I need to learn the basics of Rails first.
For anyone who enjoyed working with Ruby or Ruby on Rails over the past year, please let your voice be heard in the 2021 Stack Overflow Developer Survey.
As he said, the most complex stuff is to install ruby ..it was a pain for me. ..
i saw a lot of videos because a problem just apears behind another..
no just because the installin, but the pc or windows configuraron.. many questions on foros and to ia later i cod install it .
then someone recomend me this full course and at this time it is Wonderfull!!
thank you John Edler!
How is this free!? Incredible tutorial, and a great teacher!
Thank you very much, it was a pleasure to learn with you. Boom !!! :)
In the 'Style with bootstrap' section, when you open your views (such as friends/index.html.erb), it shows a table in the HTML. For me it just shows something like and then . It renders in my browser with no table. I had to go in and add the entire table in my index.html.erb file. Does anyone know why this is happening? I'm brand new to ruby on rails.
I started about the same time as you, and the same happened for me. Perhaps ROR has changed something in the year since this course was released. I had some trouble installing it too and had to find different instructions from what the original was. Right now I'm stuck just after installing devise and setting the nav paths for sign up, sign in etc. The sign up page displays fine, but when I try to sign up I get an error NoMethodError in Devise::RegistrationsController#create. I've asked for help on substack but no help yet. I rechecked every step I did against the video, and did everything the same. So frustrating.
Yep exact same thing pretty much. I got the same or a similar error when attempting to register/sign up a user. I haven’t spent much time on it since then. Maybe need to do some more general ROR learning to figure that out. Let me know if you can make it work , I’ll do the same.
@@kami_dende I found a comment from George Meng below here where he said that a step was missing, and to type:
rails generate devise:controllers users
It seemed right to me, as the issue seems to be with the controller path, but I tried this and it still doesn't work.
I'm currently having the same issue
@@Bigdog33R Did you figure it out?
Bro the amount of work it would normally take to do this with the MERN stack is so much more. Astronomical. You have to
manually set up all the boiler plate and server code
individually write all the api endpoints for each operation(CRUD)
In the client, create the "list all contacts", "new contact", and "edit contact" pages
You can add the destroy button to the edit or list all
But we know just a button in HTML does nothing, so you also have to connect these forms and pages to the express routes(API endpoints)
ALL THAT took installing rails(on linux not too bad), and then running a few commands...
I came here to learn rails, but now I want to learn django
ngl with the amount of praise the video gets even in recent comments, I expected something a lot more comprehensive, not to mention how the version differences made it ten times harder than it needed to be
It is the best tutorial and hands on on Ruby on Rails Dear Mosh you are like Kohinoor diamond hats up
the only good and bad things about ruby on rails is:
TO MUCH MAGIC
I've got halfway thru the course and I like your way of teaching. You keep it light and easy. To bad the code you use is outdated and are full of errors now. It will teach you bugfixing 😂
Really? Where are you learning rails from?
@@procoder7099 i jus got an error , when creating a new project
Hie.. railsinstaller.org is not working on my laptop
One of the best tutorials that I have followed. Thanks Jhon
is railsinstaller.org down? it doesn't load :/
Its down, but, you can install ruby, then in git bash run, gem install bundler, and then run, gem install rails, and it should work for you, after that you can skip the instalation steps but you still have to generate the project file.