FREE: Get my Ruby on Rails 6 course FREE for 1 month on Skillshare premium using this link: www.skillshare.com/r/profile/David-Battersby/699450490
@adante407
4 жыл бұрын
You have some great content. I am finding it hard to find up to date Rails tutorials. Hopefully you're going to continue making Rails videos? 👍
@davidbattersby
4 жыл бұрын
Hi Seán, thanks for the comment. Agreed on the lack of up to date Rails videos. I'm currently working on new Rails content that will be uploaded soon :)
@1337kaas
4 жыл бұрын
@@davidbattersby Awesome!
@ShahnawazSayyad
4 жыл бұрын
@@davidbattersby Any idea when these videos will be out?
@crayonfever863
3 жыл бұрын
I second that idea! More Ruby!
@Ismael-jh7bx
2 жыл бұрын
@@davidbattersby are the new contents uploaded already ?
@Morpheus396
3 жыл бұрын
Oh wow this is GOLD! Perfect pace! Your edit is straight to the point, no unnecessary fluff, just right. Thank you so much!! Subbed!
@davidbattersby
3 жыл бұрын
Thanks! I've tried to keep it short and to the point. Appreciate the comment :)
@ThubaMamba
4 жыл бұрын
Hey David. Great content. You're a bit too fast though. Photo upload seems to not work on my end, trying to figure out what might have gone wrong.
@Jeanetjes
3 жыл бұрын
Thanks for the tutorial. It is a bit too fast though so it's really hard to follow along with it.
@davidbattersby
3 жыл бұрын
Thanks for the comment. It is a bit fast unfortunately when I watch it back now. I might do a new version of this video soon at a slower pace, I think it is a fun project and can cover a lot for anyone learning Rails.
@jayhu6075
4 жыл бұрын
What a amazing tutorial. This is what i been waiting for. Hopely more topic . Many thanks.
@davidbattersby
4 жыл бұрын
Thanks Jay :)
@after6097
4 жыл бұрын
Great practical tutorial. Please add soon the next videos. Thanks.
@davidbattersby
4 жыл бұрын
Thanks for the comment, glad the video was helpful!
@_eknock
4 жыл бұрын
I find activestorage faster and easier to implement than carrierwave. My bias though.
@davidbattersby
4 жыл бұрын
Thanks mate, I've been using Carrierwave out of habit as I was working on Rails 4 apps previously and never found the need to switch once active storage was released in Rails 5. Will probably try to use active storage in a future video though as it seems much easier for developers to get setup.
@_eknock
4 жыл бұрын
@@davidbattersby Isn't that the whole point? Great content still. Make some funky delicious stuff like a web comparison based on nokogiri web scraping
@BitCloud047
2 жыл бұрын
good course, but hard to keep up with. Perhaps you could slow down and explain more.
@frockygarcia4117
4 жыл бұрын
Subscribed. Please upload more great content sir! Helps me keep my employment. Thank you
@davidbattersby
4 жыл бұрын
Thanks! New content is coming very soon :)
@geekgloryenglish2822
4 жыл бұрын
Do you use github, if you use can you plz share it
@davidbattersby
5 жыл бұрын
Hopefully you guys enjoyed this video and found it helpful! I'm launching a Ruby on Rails course: www.subscribepage.com/h7w5u8 I am also selling the code for this web app as a product on my website. BUY Real Estate Platform Template: www.davidbattersby.com/products/real-estate-platform I also have my Instagram clone and Craigslist clone for sale (links below if interested). 😊 BUY Instagram App Template: www.davidbattersby.com/products/instagram-clone BUY Craigslist App Template: www.davidbattersby.com/products/craigslist-clone
@petergrace9016
4 жыл бұрын
Sir I want to suggest u teach us how to build a chatroom socket where user can join any room n leave using ruby pls
@kajaldabhade2267
3 жыл бұрын
Hello I m doing this project but error comes after in add sample navigation in _public file after i run the server error comes like 'load' 'Call' What should I do ?
@maximus22decimus
3 жыл бұрын
Great tutorial,, very detailed, pls make more tutorial apps on RoR.. congrats Teacher!!
@davidbattersby
3 жыл бұрын
Thanks Pierre, more to come!
@geekgloryenglish2822
4 жыл бұрын
what are the gem that You install in the first few minutes. i cant see them clearly. Is that important?
@davidbattersby
4 жыл бұрын
Hi, the first gem I installed was "Devise", which is for creating users, sign in/sign out/forgot password etc. kzitem.info/news/bejne/0qx9ra5ja4l5o4o
@geekgloryenglish2822
4 жыл бұрын
@@davidbattersby Thz
@niclorenzo2603
4 жыл бұрын
Great tutorial bro! Thanks a lot!
@davidbattersby
3 жыл бұрын
You're welcome :)
@beginnersinstitute6143
Жыл бұрын
from where do i copy the scss style in 12:45
@jemimahchepyego5447
4 жыл бұрын
too fast ,will pleas share your github repo
@hass89
4 жыл бұрын
Your KZitem location says UK, the site you looked up was Australian, your Google says Malaysia. Truly international! Hellos from Malaysia :wave:
@davidbattersby
4 жыл бұрын
Haha, thanks man! I was wondering if someone would spot that :) I've definitely travelled a bit over the past few years, I enjoy spending time in Malaysia :D
@hass89
4 жыл бұрын
David Battersby that’s really awesome. If you’re ever around, you’re more than welcome to drop by the ruby meet-up. First Tuesday of every month!
@valentim-aires
4 жыл бұрын
Pure gold, thank you!
@davidbattersby
4 жыл бұрын
Thanks João, glad you liked the video!
@parneettoor5697
4 жыл бұрын
I have an error while while doing this can you help me with this please
@100sunilthegreat
4 жыл бұрын
very nice video. Thanks for making this video
@davidbattersby
4 жыл бұрын
Thanks Sunil, appreciate the comment! More content coming soon :)
@lukkash
4 жыл бұрын
*subscribed* cos a great content gets always a subscription from me😊
@davidbattersby
4 жыл бұрын
Thanks for subbing :)
@shubhampatel8709
3 жыл бұрын
sir my log in and sign up are not work
@chingompiew1
4 жыл бұрын
Hi thanks for your work. At 4:35 you enable the Trackable and Confirmable, but how do you do that? I'm a beginner so it's pretty tough to follow without the actual instructions of how things are done.
@davidbattersby
4 жыл бұрын
Hi niceboke. When you set up devise, there are some fields that are commented out of the database migration. I uncommented them and then added the devise :trackable to the Account model. Here is a quick walkthrough: github.com/plataformatec/devise/wiki/How-To:-Add-:trackable-to-Users
@BuyCharmsHere
4 жыл бұрын
Uncomment the lines using CTRL + /
@cutliss
4 жыл бұрын
Did you store the images in a database or a file?
@davidbattersby
4 жыл бұрын
Hi, when in development mode the images are stored as files under the /public/uploads/tmp directory of your rails project. When deployed to production it will use the Amazon S3 bucket (settings for third party storage provider are set here if you need to change: config/initializers/carrierwave.rb).
@cutliss
4 жыл бұрын
@@davidbattersby thank you!
@PeterRichardsandYoureNot
3 жыл бұрын
Request: create a rails app with linked models (ie: user, phones) that has a form with the ability to add dynamic fields at run time (click a plus button and create a new phone entry field) and rails will process the new dynamically crated fields on the back end. I tried it with jquery, but it’s been a devil and can’t get it figured out.
@davidbattersby
3 жыл бұрын
Good idea for a tutorial, I have done this in several rails apps before so can share some tips on how to do that in a tutorial video 👍👍
@254_Cyrus
3 жыл бұрын
Hello David. Many thanks again for such a wonderful tutorial, I do have a question, the images are getting to S3 but I am getting an error could you help me solve it The error message is: 2 errors prohibited this item from being saved: Photo Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: You must have ImageMagick or GraphicsMagick installed Account must exist But the image is getting to S3
@254_Cyrus
3 жыл бұрын
My logs mention: Completed 422 Unprocessable Entity,,, Could you help avoid this? Thanks in advance
@davidbattersby
3 жыл бұрын
The "Account must exist" is due to the relationship with the account model. Make sure the account_id is being added when creating/updating the record. It sounds like resizing the photo isn't working, that requires mini magick. Can you check that the gem is within gem file?
@bbosamuhamood9469
4 жыл бұрын
Hi Mr David, Thanks a lot for the great content. i have been following though its a bit difficult to follow as you're too fast. Im facing these error in the console during login Completed 401 Unauthorized in 410ms (ActiveRecord: 10.0ms) Can u kindly advise what could be the issue?
@bbosamuhamood9469
4 жыл бұрын
I found the solution, from accounts i had to disable confirmable tempolary so as to be able to login without email confirmation.
@davidbattersby
4 жыл бұрын
Glad you got it sorted! Part of the problem is that on localhost Rails doesn't send out at email. If you decide you want to use confirmable there is a workaround. Normally rails will output the email markup directly to the rails logs (terminal window that you are running rails server from). This way you can copy the confirm link address and paste it into the browser window to confirm the new accounts email when in localhost. It should work fine in production though.
@bbosamuhamood9469
4 жыл бұрын
@@davidbattersby Dear Appreciated alot for this second method.
@jemimahchepyego5447
4 жыл бұрын
@@davidbattersby after around 2 days of being stuck here i discovered this i wish i could go over comments
@chaenvoi7058
4 жыл бұрын
@@bbosamuhamood9469 thank you so much!! I was watching the video over and over again, becoming crazy!
@terrancegarrett1539
4 жыл бұрын
Hi, I really like the content. Along the way at around 24 minutes into the tutorial I ran into a issue. Right after I edit the properties controller and reload the page it does not add the new property. The app returns me to the sign in page. When I click the properties in the sidebar then click new property I'm redirected to the sign in page again and if I try to sign in from that point it just asks me to sign in again. Is there something I'm missing here?
@chaenvoi7058
4 жыл бұрын
hi Terrance, I have exactly the same issue, did you figure it out?
@w1d3r75
3 жыл бұрын
Sorry, what rails version are using for this project?
@davidbattersby
3 жыл бұрын
Hi, this is was created using Rails 6.0
@andrewpaterson7088
2 жыл бұрын
Hi, thank you for your great video. I have an error here : wrong number of arguments (given 2, expected 1) # POST /properties or /properties.json def create @property = Property.new(property_params) @property.account_id = current_account.id respond_to do |format| Any idea why, I've double checked everything is as you have done. Thanks, Andrew
@kesler9777
2 жыл бұрын
did you find the solution?
@yashkotalwar113
Жыл бұрын
same issue...Can you tell me if you got the solution?
@davefry7111
4 жыл бұрын
Why do you skip TurboLinks if you don't mind me asking?
@davidbattersby
4 жыл бұрын
It's more of a personal preference for me, I encountered some ongoing caching issues when using turbolinks in the past. For new apps I opted to avoid it unless it was a requirement.
@davefry7111
4 жыл бұрын
@@davidbattersby Thanks for the reply David ;)
@alexlarsen1512
4 жыл бұрын
Hi there. Your code will ..crash anyway as you not using at all no BDD+TDD. IT WILL WORK ON LOCAL HOST, BUT IN PRODUCTION WILL FAIL
@davidbattersby
4 жыл бұрын
Hey Alex, test driven development is a good approach for a solid Rails app. However, the app will run just fine in production without writing test cases. Test cases are used for ensuring new features don't break existing functionality of the app.
@alexlarsen1512
4 жыл бұрын
Extly. You writing the code without any checkup with previous code on production machine... The code will run ...and will fail when ...and you will have head ake... sorry for customers :) waisted time
@VasiliosKambouras
3 жыл бұрын
Hi David, I've been having a lot of trouble with AWS credentials (at 33:30) I've tried so many different ways, but keep getting : "ArgumentError (Missing required arguments: aws_access_key_id, aws_secret_access_key)"
@davidbattersby
3 жыл бұрын
Hi, it seems like it is not reading the environment variables for AWS. If you have added them, make sure to restart the server. I normally do this manually by adding a .yml file within /config folder with the key: value pairs, next add the file to .gitignore. Add the figaro gem to read them in the dev environment and restart server.
@VasiliosKambouras
3 жыл бұрын
@@davidbattersby I appreciate the feedback, I ended up using active storage for the photos
@masoud1128
8 ай бұрын
Can i follow this with rails 7 ?
@nosaugobor-zj3ws
4 ай бұрын
i also wanna no p;lz
@tommyranger9228
4 жыл бұрын
Is ROR still relevant?
@davidbattersby
4 жыл бұрын
It really depends on what you are looking for. It is relevant in web development and building web apps if that is your goal. Faster turnaround time and greater developer happiness are characteristics of Ruby on Rails. It's not so relevant if you are looking for the latest shiny new technology, or working on a data science project or building an iOS or Android app (unless just using Rails as a backend API). Rails has been around a while and is battle hardened. It's been trusted by huge companies like Twitter, Airbnb, Shopify and Github. The easy answer is, yes it's still relevant. The more complicated answer is that it depends on your objective. Hope this helps.
@tommyranger9228
4 жыл бұрын
@@davidbattersby Thanks for your reply. The main reason I asked is because ROR is always on the top list of frameworks to avoid according to most vlogs and arcticles. It is even mentioned that Twitter switched to Scala.
@davidbattersby
4 жыл бұрын
This might be a long comment but it's a very interesting topic. I haven't seen many blogs that recommend not learning Rails but maybe I'm not looking in the right places. I've seen a few tech influencers on KZitem who try to advise against learning Rails but I personally wouldn't listen to those people as their opinions are usually based on self interest (they are teaching a Python course for example), or they are riding on the keywords to widen their audience (mostly click-bait and non related to their content). I could name some KZitemrs who are popular that do that frequently (and go unnoticed) but I'm only interested in helping others and have no interest in calling anyone out. In regards to Twitter and switching to Scala. Scala can handle a large volume of real time data (partly due to sharding). It actually makes sense for companies that reach millions of users to switch their stack to adapt to their volume of users/traffic. It wouldn't have made any sense for them to start out with Scala however, since the performance benefits would have been outweighed by the technical debt of using a new technology that their developers weren't familiar with. Shopify is a good example of handling huge amounts of concurrent requests in their black friday sale, all while using a Rails app. They even built a microsite to highlight their real time transaction volume (it was huge). It's all about using the right tool for the job, depending on what the requirements are. That is difficult at first but gets easier with time and experience. When starting a new platform, social network, e-learning site etc, Rails is a fantastic choice due to it's flexibility but of course there are a lot of real world variables involved.
@tommyranger9228
4 жыл бұрын
@@davidbattersby Thank you for your insight. I would like to try exploring RoR on my free time.
@anasabuobaid308
Жыл бұрын
you are very fast and you hide a lot of code and this confuses me a lot
@geanmuktisalasan7515
4 жыл бұрын
Terima Kasih
@davidbattersby
4 жыл бұрын
Sama sama :)
@timpdj7677
2 жыл бұрын
you are not helping me
@eaiswebmails3418
4 жыл бұрын
great tutorials facing some errors C:/Sites/tobi/app/views/devise/sessions/new.html.erb:25: syntax error, unexpected keyword_ensure, expecting ')' C:/Sites/tobi/app/views/devise/sessions/new.html.erb:27: syntax error, unexpected keyword_end, expecting ')'): Any help
@virtualnerd-mz9je
Жыл бұрын
this is so hard to follow along and the instructions don't even match the steps performed sometimes, speaking something else and doing something else
@funguy29
3 жыл бұрын
Are you welsh ?
@davidbattersby
3 жыл бұрын
Hey, close guess but I'm actually from Northern Ireland. I have lived overseas for a few years so my accent may have faded a bit :D
@funguy29
3 жыл бұрын
@@davidbattersby 👍🏿 I had a welsh neighbour and your voice reminded me of him.
@truncus5776
4 жыл бұрын
Has someone actually bought the MVP?
@davidbattersby
4 жыл бұрын
Yes, there have been quite a few sales already. I will also be launching up update soon that will incorporate payments to allow platform owners to charge for listings on their own real estate platform. Future updates are free for anyone who has purchased the MVP.
@truncus5776
4 жыл бұрын
@@davidbattersby Can you please make a video out of that? That would be super interesting!
@weefunkster
3 жыл бұрын
For gods sake why did you name your users table Accounts. The amount of hassle this has caused is unreal. Stick to standard conventions dude
Пікірлер: 101