Looking for more suggestions for tutorials! Also would love suggestions on a way to show you what's on the list and what's coming soon. An excel sheet seems kinda lame, any ideas? Maybe a public Trello board?
Bless you for this, sir. You are my hero, jumpstarting me into the web dev world much quicker than I could by sifting through documentation myself. I'm learning all these different frameworks at once and it can get a little overwhelming, but this is a beautiful beginner-friendly gem of a video that has really helped me hit the ground running, along with some of your other videos. Thank you!
You shouldn't be passing the id as part of the post data, its already included in the restful route e.g. put '/post/:id', also, you added it to the strong params which means people can now update the database id by passing it as part of the post body. definitely not something you want. The id should be passed in the url (as convention), then set in a before action, where you can do any required authorization to ensure the current user has access to the resource with that id, then use strong params to allow mass assignment of only the fileds you want the user to be able to update (of which ID should not be one of). fyi - just posting this here for any beginners, I know deanin knows this and this wasnt the point of the video, probs just running on too much coffee and not enough sleep lol
Looking for more suggestions for tutorials! Also would love suggestions on a way to show you what's on the list and what's coming soon. An excel sheet seems kinda lame, any ideas? Maybe a public Trello board?
How about a trello clone course... then use that for your youtoobings?
Bless you for this, sir. You are my hero, jumpstarting me into the web dev world much quicker than I could by sifting through documentation myself. I'm learning all these different frameworks at once and it can get a little overwhelming, but this is a beautiful beginner-friendly gem of a video that has really helped me hit the ground running, along with some of your other videos. Thank you!
Can't wait for Hotwire Strada
Thank you so much for showcasing this! Loved this! :)
this is exactly what i want to learn right now! thanks you!
Top tutorial sir!
Thank you! Amazing video!
Just wondering if you are planning to make a video explaining how to do authorization and authentication for Vue/Vite?
I've got it on my list to try the doorkeeper approach but with Vue. Just need to setup the entire form and make it all work 😬
You shouldn't be passing the id as part of the post data, its already included in the restful route e.g. put '/post/:id', also, you added it to the strong params which means people can now update the database id by passing it as part of the post body. definitely not something you want.
The id should be passed in the url (as convention), then set in a before action, where you can do any required authorization to ensure the current user has access to the resource with that id, then use strong params to allow mass assignment of only the fileds you want the user to be able to update (of which ID should not be one of).
fyi - just posting this here for any beginners, I know deanin knows this and this wasnt the point of the video, probs just running on too much coffee and not enough sleep lol
beat me to it.
well, now I have to hunt all this down rofl
suuuuuu : ) very useful for me : )
Actually, these are two separate projects!
that's the point. rails is best used as a separate backend for handling of database and APIs.