GoRails screencasts are here to fill in the gaps, explain the confusing pieces, and give you an understanding you can't find elsewhere. There is a lot of "magic" that happens in Ruby on Rails and it's hard to wrap your head around so many different gems and concepts. You'll get to see my actual development environment, how I think about and design code, and learn how to become a confident developer.
gorails.com
Пікірлер
I am getting an error undefined method `user=' for #<Current:0x00007fda5a083720 @attributes={}>
If you are stuck at 0:02 it may be a turbo error use data: { turbo: false } like <%= form_with model: @user, url: sign_up_path, data: { turbo: false } do |form| %>
You should fix the issue and learn Turbo instead of disabling it.
I'm wondering it it would make any difference to save "body' as json rather than text. Or jsond? Thanks for this.
Thank you so much! This content is Gold!
Thanks!!
If you get “rails not installed on this system”, just restart your terminal
hello frens I'm learning Rails and I heard about the gem called Devise, and the question is whether this autentication from scratch can replace Devise or I still should learn and use Devise? thanks
We recommend building it yourself to learn and then using devise for the automatic security updates
@@GorailsTV thanks frend
Does this tutorial use the Twitter API?
Wow, it blows my mind. Need some time to digest. Thank you Chris.
after hours of search finally found your video which told me about the bin/dev watcher, thank you! That solved my problem! 👍
Glad we could help!
When I click EDIT, the previously save image goes away. How can I prevent this from being removed?
Fantastic! Super helpful.
So good of Adam Driver to take time out of his busy filming schedule to show us how to use the Pay gem! Seriously though, thank you Collin for the nice tutorial. Lots of great hints and tips throughout such as how to do authentication from scratch.
very useful tutorial thanks for making this. i have doubt how is your localhost:3000/password/edit => redirect you to "password#edit" but mine trying to access the "password#show", i need to manually adjust the routes to get 'password/edit', to: 'password#show' and for logout i had to manually do this delete '/sessions', to: 'sessions#destroy' what can i do?
U wesome! thanks from Brazil
Hey Chris. Thank you for the course. It's just what was needed. You are doing a very great job. I am really thankful and wishing you all the best! Once again, thank you!
You're welcome and so glad to hear that!!
line 4: what is that required_options does?
Why they explaining too fast?😢
Super useful video! 🔥 I just didn't include devise gem to my new project for the first time.
In the process of extracting the variable into a method, you made an endless method every time. I use endless methods in these cases as they are shorter and, to me, easier to read. I believe endless methods arrived in Ruby 3.0.
You don't use the short Ruby method definition? `def stream = (evaluate_options(:stream) || recipient)` - is this just to maintain backwards compatibility in the gem with older Rails? Or don't like that syntax?
I usually forget it exists
I do this all the time :D often memoizing if this calls something expensive to compute, that would have been great to mention this in this video
Set this up with no issues, awesome tutorial. I actually smiled when you talked about how difficult it was because you made it seem so easy. Deeply appreciate all the help you put out in this series for free!
That makes my day!
That was great! Thank you for such useful explanation.
cool video)
cool video)
Great video. Thank you Chris! What do you recommend for stateless authentication using Rails 7.1.x ? I'm looking for a JWT gem that works with the latest Rails
We did a pro episode on JWTs here gorails.com/episodes/jwt-authentication-from-scratch-with-rails
@@GorailsTV Ok, I'll check it out. Thanks!
Cool, but how do I leave a current workspace back to main?
23:25 I get it xD Anyway thanks for great course Chris! (I believe it's the one and the best course on whole Internet)
At, 13:00, where is the logic for updating post.like_count?
Hi!, I am about to start off with these tutorials. Is knowledge of Ruby as a programming language a pre-requisite? (I have done backend dev in springboot before). Thank you
A little bit is helpful but I started learning Rails without knowing Ruby. At some point you'll want to know more of it but not absolutely required since it's similar to other languages. That said, we have an intro to Ruby course for free here: gorails.com/series/ruby-for-beginners
@@GorailsTVThank you will go through it first!
Hi, I am about to start off with these tutorials. Is knowledge of Ruby as a programming language a pre-requisite?
No but it can be helpful. We've got a free series on Ruby too. gorails.com/series/ruby-for-beginners
@@GorailsTV Thank you! Will go through these first.
I am learning a lot from this tutorial, so thank you. I am getting stuck in chapter 13 with these two statements in blog_post.rb: scope :published, -> {where ("published_at <= ?", Time.current)} scope :scheduled, -> { where ("published_at > ?", Time.current)} and this is the error: /data/Projects/ruby/gorails/myblog/app/models/blog_post.rb:7: syntax error, unexpected ',', expecting ')' ...-> {where ("published_at <= ?", Time.current)} ... ^ /data/Projects/ruby/gorails/myblog/app/models/blog_post.rb:8: syntax error, unexpected ',', expecting ')' ...-> { where ("published_at > ?", Time.current)} ... ^ Versions: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] It is kind of hard to see the code, since it is quite small, so I may have made a copy mistake. Any thoughts? I would like to continue on with the tutorial. Thanks, Gerry
Looks like you've got a syntax error somewhere. Here's the source to compare with: github.com/gorails-screencasts/learning-path-blog/blob/main/app/models/blog_post.rb#L8-L11
very helpful, thanks.
Thanks. very useful series.
wow … nice … debugging on rails
Yooo I had no idea this was possible! 🤯
I am getting this error, "An error has occurred, this and all later migrations canceled: SQLite3::SQLException: no such table: users". Not sure what to do? I think i followed an old video of yours in rails 6 where we built the authentication manually. But now I had the users table, so I couldn't migrate the devise database. So then I tried to delete the other data base: rails db:drop. and now I get the above error and can't find any stack overflow guides to help.
Eager to use that!
Holy F**K - Kylo Ren is teaching me Ruby ! How epic is this !?!?!
He's multitalented
This is a fantastic tip!
Cool!
I am a real dummy, but one thing that took me too long to figure out is that when you use the helper tags and change the url link (about to about-us) when you refresh the page you have to change the url link to about-us. Otherwise you get an error because that page doesn't exisit anymore.
Hey go rails! I have a question If I use action text for some blog post. Since these blog posts are not many can instead of uploading files in Amazon s3, I can store them in my app? Thanks!!
You can use the file store but your hosting service would need persistent disk storage in production. So a place like Heroku wouldn't work because they run everything in containers but a hosting service like Hatchbox.io that we run does support persistent disk storage.
Is this method still recommended in 2024?
Yep
Hey Chris, thanks for the video. Would request you to please create videos on rspec and selenium. Thanks
Now I'm inspired to learn rails. Thank you for sharing your knowledge.
It's well worth it!!
Anyone knows how to solve this problem "Unrecognized command "tailwindcss:install" (Rails::Command::UnrecognizedCommandError)"
That was exactly what I was looking for. Your explanation is clear, well-paced, and objective. Now I have the starting point to learn. Thank you very much! Long life to GoRails! (and, by the way, Hatchbox is a nice :)
💖💖💖